1
1
language : php
2
- php :
3
- - 7.1
4
- - 7.2
5
- - nightly
2
+ php : [ 7.1, 7.2, nightly ]
6
3
sudo : false
7
4
8
5
env :
@@ -13,33 +10,38 @@ matrix:
13
10
- php : nightly
14
11
15
12
install :
16
- - composer install --no-interaction --prefer-dist --optimize-autoloader
13
+ - travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14
+ - travis_retry wget https://phar.io/releases/phive.phar
15
+ - travis_retry php phive.phar --no-progress install --trust-gpg-keys 4AA394086372C20A phpunit
16
+
17
+ script :
18
+ - ./tools/phpunit --no-coverage
17
19
18
20
jobs :
19
21
include :
20
- - stage : test
21
- script :
22
- - vendor/bin/phpunit --no-coverage
23
-
24
22
- stage : coverage
25
23
php : 7.1
24
+ before_script :
25
+ - echo "code coverage won't work from phpunit.phar, because some of this package's deps are in that phar..."
26
+ - travis_retry composer require --dev phpunit/phpunit
26
27
script :
27
- - vendor/bin/phpunit
28
+ - ./ vendor/bin/phpunit
28
29
after_script :
29
- - wget https://scrutinizer-ci.com/ocular.phar && php ocular .phar code-coverage:upload --format= php-clover build/logs/clover.xml
30
- - wget https://github .com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls. phar && php coveralls .phar --verbose
30
+ - travis_retry php phive .phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
31
+ - travis_retry wget https://scrutinizer-ci .com/ocular. phar && php ocular .phar code-coverage:upload --format=php-clover build/logs/clover.xml
31
32
32
33
- stage : lint
33
34
php : 7.1
34
35
before_script :
35
- - composer create-project symplify/easy-coding-standard temp/ecs
36
+ - travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
36
37
script :
37
- - temp/ecs/bin/ecs check src tests
38
- - vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
38
+ - ./tools/phpstan analyse src --level max --configuration phpstan.neon
39
+ - composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests
39
40
40
41
cache :
41
42
directories :
42
43
- $HOME/.composer/cache/files
44
+ - $HOME/.phive
43
45
44
46
notifications :
45
47
irc : " irc.freenode.org#phpdocumentor"
0 commit comments