forked from goetas-webservices/wsdl-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (23 loc) · 891 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: php
sudo: false
php:
- 7.1
- 7.2
matrix:
include:
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]]; then echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.1' ]]; then phpenv config-rm xdebug.ini; fi
- travis_retry composer self-update
- travis_retry composer update $COMPOSER_FLAGS
script: vendor/bin/phpunit $PHPUNIT_FLAGS
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi