File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 10
10
env :
11
11
global :
12
12
- COMPOSER_COMMAND="composer install --prefer-dist"
13
+ - TEST_COMMAND="php vendor/bin/phpunit"
14
+ - COVERAGE=false
13
15
matrix :
14
- - SYMFONY_VERSION=2.6.*
15
16
- SYMFONY_VERSION=2.7.*
16
17
- SYMFONY_VERSION=2.8.*
17
18
- SYMFONY_VERSION=3.0.*
@@ -20,21 +21,23 @@ matrix:
20
21
fast_finish : true
21
22
include :
22
23
- php : 5.5
23
- env : COMPOSER_COMMAND="composer update --prefer-lowest --prefer-stable" && SYMFONY_VERSION=2.7.*
24
+ env : COMPOSER_COMMAND="composer update --prefer-lowest --prefer-stable" COVERAGE=true TEST_COMMAND="php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-clover=coverage.xml" SYMFONY_VERSION=2.7.*
24
25
25
26
cache :
26
- directories :
27
- - $HOME/.composer/cache
27
+ directories :
28
+ - $HOME/.composer/cache
28
29
29
- install_script :
30
- - composer self-update
30
+ before_install :
31
+ - if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi;
32
+ - pip install --user codecov
33
+ - composer self-update
34
+ - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
31
35
32
36
install :
33
- - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
34
- - travis_retry ${COMPOSER_COMMAND} --no-interaction
37
+ - travis_retry ${COMPOSER_COMMAND} --no-interaction
35
38
36
39
script :
37
- - php vendor/bin/phpunit
40
+ - $TEST_COMMAND
38
41
39
42
after_success :
40
- - codecov
43
+ - if [[ "$COVERAGE" = true ]]; then codecov; fi
Original file line number Diff line number Diff line change 25
25
],
26
26
"require" : {
27
27
"php" : " ^5.5|^7" ,
28
- "symfony/framework-bundle" : " ^2.6 |^3.0" ,
29
- "cache/taggable-cache" : " ^0.2|^0. 3"
28
+ "symfony/framework-bundle" : " ^2.7 |^3.0" ,
29
+ "cache/taggable-cache" : " ^0.3"
30
30
},
31
31
"require-dev" : {
32
32
"phpunit/phpunit" : " ^5.1|^4.0" ,
33
33
"cache/psr-6-doctrine-bridge" : " ^2.0" ,
34
- "cache/doctrine -adapter" : " ^0.3 "
34
+ "cache/array -adapter" : " @stable "
35
35
},
36
36
"suggest" : {
37
37
"cache/doctrine-adapter-bundle" : " A bundle to register PSR-6 compliant services based on Doctrine cache" ,
You can’t perform that action at this time.
0 commit comments