From 2b0316320d99229370af7f16639fe7eb8e0b91b4 Mon Sep 17 00:00:00 2001 From: Peter Gribanov Date: Thu, 14 Mar 2019 16:52:53 +0300 Subject: [PATCH] Update Travis CI config (#18) * update Travis CI config * remove not actual job --- .travis.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a56625..61e5689 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,36 +2,38 @@ language: php sudo: false -php: - - 7.1 - - 7.0 - - 5.6 - - hhvm - notifications: - email: deploy@peter-gribanov.ru + email: + - deploy@peter-gribanov.ru + +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