-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (33 loc) · 1.05 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
35
36
37
38
39
40
41
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm
env:
global:
- COMPOSER_NO_INTERACTION=1
matrix:
- COMPOSER_DEPENDENCIES=lowest
- COMPOSER_DEPENDENCIES=highest
matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [[ $TRAVIS_PHP_VERSION = 7.0 && $COMPOSER_DEPENDENCIES = highest ]]; then COVERAGE=yes; fi;
- if [[ $TRAVIS_PHP_VERSION != nightly && $TRAVIS_PHP_VERSION != hhvm && $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi;
- composer self-update
install:
- if [[ $COMPOSER_DEPENDENCIES = lowest ]]; then composer update --prefer-lowest; fi;
- if [[ $COMPOSER_DEPENDENCIES = highest ]]; then composer update; fi;
script:
- if [[ $COVERAGE = yes ]]; then bin/phpunit --coverage-clover=build/coverage.xml; else bin/phpunit; fi
after_script:
- if [[ $COVERAGE = yes ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi