Skip to content

Commit 708c646

Browse files
committed
better parallelize build stages
1 parent e6bd806 commit 708c646

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,37 @@ matrix:
1111

1212
install:
1313
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14-
- travis_retry wget https://phar.io/releases/phive.phar
1514

1615
script:
1716
- ./vendor/bin/phpunit --no-coverage
1817

1918
jobs:
2019
include:
21-
- stage: coverage
20+
- stage: analysis
2221
php: 7.1
2322
script:
2423
- ./vendor/bin/phpunit
2524
after_script:
25+
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
2626
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
27-
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
27+
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
2828

29-
- stage: lint
29+
- stage: analysis
3030
php: 7.1
3131
before_script:
32+
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
3233
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
3334
script:
3435
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
36+
37+
- stage: analysis
38+
php: 7.1
39+
script:
3540
- composer create-project symplify/easy-coding-standard temp/ecs ^3 && temp/ecs/bin/ecs check src tests
3641

3742
cache:
3843
directories:
39-
- $HOME/.composer/cache/files
44+
- $HOME/.composer
4045
- $HOME/.phive
4146

4247
notifications:

0 commit comments

Comments
 (0)