Skip to content

Commit

Permalink
Enhancement: Use stages so we can name the job
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Oct 31, 2019
1 parent 2c0c4f1 commit d0dcee9
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions .travis.yml
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

0 comments on commit d0dcee9

Please sign in to comment.