-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
19 lines (14 loc) · 783 Bytes
/
Copy path.travis.yml
File metadata and controls
19 lines (14 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
php:
- '7.3.24'
- '7.4.0'
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
script: vendor/bin/phpunit --coverage-clover tests/clover.xml
after_script:
- php vendor/bin/codacycoverage clover tests/clover.xml
- if [ "$TRAVIS_PHP_VERSION" != "7.2" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then cd ../; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.2" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.2" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover tests/coverage.clover; fi