summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-15 13:20:38 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-15 13:20:38 +0000
commitc52e633348a2ee522a9a5d3b1edd388d659ad39e (patch)
tree81ba7b5244c40c630570302bc8584ed0d3139507 /.travis.yml
parent976c6dcf0195e6036cfe711bfb79ed41042d79bf (diff)
downloadwebtrees-c52e633348a2ee522a9a5d3b1edd388d659ad39e.tar.gz
webtrees-c52e633348a2ee522a9a5d3b1edd388d659ad39e.tar.bz2
webtrees-c52e633348a2ee522a9a5d3b1edd388d659ad39e.zip
Testing
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml28
1 files changed, 13 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml
index 0bf740634e..3f9f2b0d8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,28 +16,26 @@ cache:
- vendor
- $HOME/.composer/cache
+# 7.4snapshot does not currently have ext-gd - but we don't need it for our tests
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} = 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
+ - if [ $TRAVIS_PHP_VERSION = nightly ]; then php composer.phar install --ignore-platform-reqs; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.4snapshot ]; then php composer.phar install --ignore-platform-reqs; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.3 ]; then php composer.phar install; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.2 ]; then php composer.phar install; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.1 ]; then php composer.phar install; fi
before_script:
- travis_retry composer config github-oauth.github.com "${GITHUB_OAUTH_TOKEN}"
- echo "${TRAVIS_PHP_VERSION}"
+# Coverage testing is slow, so only do it once.
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} = 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
+ - if [ $TRAVIS_PHP_VERSION = nightly ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.4snapshot ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.3 ]; then vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover tests/clover.xml; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.2 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
+ - if [ $TRAVIS_PHP_VERSION = 7.1 ]; then vendor/bin/phpunit -c phpunit.xml.dist; fi
after_script:
- - travis_retry php vendor/bin/php-coveralls -v
+ - if [ $TRAVIS_PHP_VERSION = 7.3 ]; then travis_retry php vendor/bin/php-coveralls -v; fi