-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Use stages so we can name the job
- Loading branch information
1 parent
2c0c4f1
commit d0dcee9
Showing
1 changed file
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,38 @@ | ||
language: php | ||
|
||
if: type = pull_request | ||
jobs: | ||
include: | ||
- &COLLECT_CODE_COVERAGE | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
stage: Collect Code Coverage | ||
|
||
matrix: | ||
fast_finish: true | ||
php: 7.1 | ||
|
||
before_install: | ||
- ./tools/composer clear-cache | ||
if: type = pull_request | ||
|
||
install: | ||
- travis_retry ./tools/composer update --no-ansi --no-interaction --no-progress --no-suggest | ||
before_install: | ||
- ./tools/composer clear-cache | ||
|
||
before_script: | ||
- echo 'zend.assertions=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- echo 'assert.exception=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
install: | ||
- travis_retry ./tools/composer update --no-ansi --no-interaction --no-progress --no-suggest | ||
|
||
script: | ||
- ./phpunit --coverage-clover=coverage.xml | ||
before_script: | ||
- echo 'zend.assertions=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- echo 'assert.exception=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
script: | ||
- ./phpunit --coverage-clover=coverage.xml | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
- <<: *COLLECT_CODE_COVERAGE | ||
|
||
php: 7.2 | ||
|
||
- <<: *COLLECT_CODE_COVERAGE | ||
|
||
php: 7.3 | ||
|
||
notifications: | ||
email: false |