-
Notifications
You must be signed in to change notification settings - Fork 175
/
.travis.yml
34 lines (24 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
32
33
34
language: php
#cache:
# directories:
# - vendor
# - $HOME/.composer/cache
php:
- '5.5.9'
- '5.6'
- '7.0'
# - hhvm blocked by phpdocumentor/type-resolver/src/Types/Integer
#before_install:
# - if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]] ; then pecl channel-update pecl.php.net; fi;
# - if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then pecl install riak-beta; fi;
# - if [[ $TRAVIS_PHP_VERSION =~ 5.[6] ]] ; then echo yes | pecl install apcu-4.0.10; fi;
# - if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then pecl config-set preferred_state beta; echo yes | pecl install apcu; fi;
# - if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-add ./tests/travis/php.ini; fi;
install:
- travis_retry composer update
script:
- ./vendor/bin/phpunit -c ./phpunit.xml -v
after_script:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
after_script:
- php vendor/bin/coveralls -v