File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 11
11
- deps=""
12
12
13
13
php :
14
- - 5.3
15
14
- 5.4
16
15
- 5.5
17
16
- 5.6
18
- - 7.0
19
17
- hhvm
20
18
21
19
matrix :
22
20
fast_finish : true
23
21
include :
24
22
- php : 5.3
25
23
env : deps="low"
24
+ - php : 7.0
25
+ env : xdebug="yes"
26
+
27
+ before_install :
28
+ - if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$xdebug" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
29
+ - composer self-update
26
30
27
31
install :
28
32
- if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable; fi
29
33
- if [ "$deps" = "" ]; then composer install; fi
30
34
31
35
script :
32
- - phpunit --coverage-clover=coverage.clover
33
- - wget https://scrutinizer-ci.com/ocular.phar
34
- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
36
+ - if [[ "$xdebug" = "yes" ]]; then phpunit --coverage-clover=coverage.clover; else phpunit; fi
37
+ - if [[ "$xdebug" = "yes" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
38
+ - if [[ "$xdebug" = "yes" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
You can’t perform that action at this time.
0 commit comments