From e0d0b8e12c8dfd4e0cc4d21cd6c444267ba3c8d6 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 26 Feb 2019 12:35:10 +0000 Subject: Travis --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index af7929b96e..b4fb02f98e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,9 @@ cache: install: - curl -s http://getcomposer.org/installer | php - - pecl install ast - - php composer.phar install --dev --no-interaction + - # 7.4snapshot does not currently have ext-gd - but we don't need it for our tests + - if [ $(phpenv version-name) > 7.3 ]; then php composer.phar install --no-interaction --ignore-platform-reqs; fi + - if [ $(phpenv version-name) <= 7.3 ]; then php composer.phar install --no-interaction; fi before_script: - travis_retry composer config github-oauth.github.com "${GITHUB_OAUTH_TOKEN}" @@ -27,9 +28,9 @@ before_script: script: - mkdir -p build/logs - - vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml - - vendor/bin/pahout --php-version=7.1.3 --ignore-paths=data --ignore-paths=vendor - - vendor/bin/phpcf --exclude=vendor . + - # nightly and 7.4snapshot do not currently have ext-xdebug, which is needed for coverage testing + - if [ $(phpenv version-name) > 7.3 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi + - if [ $(phpenv version-name) <= 7.3 ]; then vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml; fi after_script: - travis_retry php vendor/bin/php-coveralls -v -- cgit v1.3