summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-15 13:00:49 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-15 13:00:49 +0000
commit976c6dcf0195e6036cfe711bfb79ed41042d79bf (patch)
treecb342b54ca499b13f8d935e31cb67133da11cdd5 /.travis.yml
parentad99affd085bba876161427db69e2becd96c116d (diff)
downloadwebtrees-976c6dcf0195e6036cfe711bfb79ed41042d79bf.tar.gz
webtrees-976c6dcf0195e6036cfe711bfb79ed41042d79bf.tar.bz2
webtrees-976c6dcf0195e6036cfe711bfb79ed41042d79bf.zip
Update travis configuration
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 08207ed723..0bf740634e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,10 +17,14 @@ cache:
- $HOME/.composer/cache
install:
+ - echo ${TRAVIS_PHP_VERSION:0:3}
- curl -s http://getcomposer.org/installer | php
- # 7.4snapshot does not currently have ext-gd - but we don't need it for our tests
- - if [ ${TRAVIS_PHP_VERSION:0:3} > 7.2 ]; then php composer.phar install --no-interaction --ignore-platform-reqs; fi
- - if [ ${TRAVIS_PHP_VERSION:0:3} < 7.3 ]; then php composer.phar install --no-interaction; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 8.0 ]; then php composer.phar install --no-interaction --ignore-platform-reqs; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.4 ]; then php composer.phar install --no-interaction --ignore-platform-reqs; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.3 ]; then php composer.phar install --no-interaction --ignore-platform-reqs; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.2 ]; then php composer.phar install --no-interaction; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.1 ]; then php composer.phar install --no-interaction; fi
before_script:
- travis_retry composer config github-oauth.github.com "${GITHUB_OAUTH_TOKEN}"
@@ -29,8 +33,11 @@ before_script:
script:
- mkdir -p build/logs
- # nightly and 7.4snapshot do not currently have ext-xdebug, which is needed for coverage testing
- - if [ ${TRAVIS_PHP_VERSION:0:3} > 7.2 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
- - if [ ${TRAVIS_PHP_VERSION:0:3} < 7.3 ]; then vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 8.0 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.4 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.3 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.2 ]; then vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml; fi
+ - if [ ${TRAVIS_PHP_VERSION:0:3} = 7.1 ]; then vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml; fi
after_script:
- travis_retry php vendor/bin/php-coveralls -v