Skip to content

Commit

Permalink
Enhancement: Collect coverage for pull requests using Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Oct 31, 2019
1 parent b2c4101 commit 2c0c4f1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: php

if: type = pull_request

php:
- 7.1
- 7.2
- 7.3

matrix:
fast_finish: true

before_install:
- ./tools/composer clear-cache

install:
- travis_retry ./tools/composer update --no-ansi --no-interaction --no-progress --no-suggest

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

script:
- ./phpunit --coverage-clover=coverage.xml

after_success:
- bash <(curl -s https://codecov.io/bash)

notifications:
email: false

0 comments on commit 2c0c4f1

Please sign in to comment.