-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
31 lines (26 loc) · 1.04 KB
/
.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
30
31
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm
before_script:
# puli
- curl https://puli.io/installer | php
#coverage
- bash -c 'if [[ "$TRAVIS_PHP_VERSION" != "7.1" && "$TRAVIS_PHP_VERSION" != "7.1" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then cp phpspec.yml.coverage phpspec.yml.dist; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer require --no-update --dev henrikbjorn/phpspec-code-coverage; fi;'
#composer
- composer self-update
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then composer update --prefer-stable --prefer-lowest -o --prefer-dist; else composer update --prefer-stable -o --prefer-dist; fi;'
after_script:
#coverage
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi;'
script: composer test