Update .travis.yml

This commit is contained in:
James Brooks
2018-06-25 21:53:22 +01:00
parent b3e7e86ff2
commit 2bea65b673

View File

@@ -1,5 +1,5 @@
language: php
dist: trusty
sudo: false
branches:
@@ -7,13 +7,19 @@ branches:
- l10n_2.4
php:
- 7.0
- 7.1
- 7.2
before_install:
- cp .env.example .env
- phpenv config-rm xdebug.ini
install: travis_retry composer install --no-interaction --no-suggest
install: travis_retry composer install --no-interaction --no-suggest -o
script: vendor/bin/phpunit
script:
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi