Skip to content

Commit

Permalink
Update Travis CI config (#18)
Browse files Browse the repository at this point in the history
* update Travis CI config

* remove not actual job
  • Loading branch information
peter-gribanov authored Mar 14, 2019
1 parent 024a263 commit 2b03163
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,38 @@ language: php

sudo: false

php:
- 7.1
- 7.0
- 5.6
- hhvm

notifications:
email: [email protected]
email:
- [email protected]

branches:
except:
- /^analysis-.*$/

matrix:
fast_finish: true
include:
- php: 7.3
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
env: COVERAGE=1
allow_failures:
- php: hhvm
sudo: required
dist: trusty
group: edge

before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$COVERAGE" != "1" ]; then phpenv config-rm xdebug.ini; fi;
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update

before_script:
- composer install --prefer-dist --no-interaction --no-scripts --no-progress

script:
- if [ "$COVERAGE" != "1" ]; then vendor/bin/phpunit; fi;
- if [ "$COVERAGE" == "1" ]; then vendor/bin/phpunit --coverage-clover build/coverage-clover.xml; fi;
- vendor/bin/phpunit --coverage-clover build/coverage-clover.xml

after_script:
- if [ "$COVERAGE" == "1" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml; fi;
- if [ "$COVERAGE" == "1" ]; then vendor/bin/coveralls -v -c .coveralls.yml; fi;
- vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml
- vendor/bin/coveralls -v -c .coveralls.yml

0 comments on commit 2b03163

Please sign in to comment.