Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit eb4ba7a

Browse files
committed
feature #183 Added some integration tests (javiereguiluz)
This PR was squashed before being merged into the 1.0-dev branch (closes #183). Discussion ---------- Added some integration tests In #161 we discussed a bit about integration tests. I know that some people are not very fond of this kind of tests, but the Symfony Installer is a critical piece of our platform and it must always work as expected. This pull request adds a test which actually builds the PHAR file and test all the different installer options (no Symfony version, special `lts` version, branch version, etc.) It also tests the Symfony Demo application installation. No mocks or tricks are used, so the test actually downloads all the real Symfony packages from the Internet. Commits ------- be61a6b Added some integration tests
2 parents 8674f70 + be61a6b commit eb4ba7a

File tree

5 files changed

+1102
-16
lines changed

5 files changed

+1102
-16
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
sudo: false
3+
4+
cache:
5+
directories:
6+
- $HOME/.composer/cache/files
7+
8+
matrix:
9+
fast_finish: true
10+
include:
11+
- php: 5.4
12+
- php: 5.5
13+
- php: 5.6
14+
- php: 7.0
15+
- php: hhvm
16+
allow_failures:
17+
- php: hhvm
18+
19+
before_install:
20+
- composer self-update
21+
- curl -LSs https://box-project.github.io/box2/installer.php | php
22+
- mv box.phar box
23+
- chmod 755 box
24+
25+
install:
26+
- composer install
27+
- php box build
28+
29+
script:
30+
- phpunit

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"symfony/filesystem": "~2.5",
2121
"raulfraile/distill": "~0.9,!=0.9.3,!=0.9.4"
2222
},
23+
"require-dev": {
24+
"symfony/process": "~2.5"
25+
},
2326
"extra": {
2427
"branch-alias": {
2528
"dev-master": "1.0-dev"

0 commit comments

Comments
 (0)