-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (29 loc) · 892 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
30
31
32
33
34
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
allow_failures:
- php: 'nightly'
include:
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
env: WITH_COVERAGE=true
- php: 7.1
- php: 'nightly'
- php: hhvm
before_script:
- if [[ "$WITH_COVERAGE" != "true" ]]; then phpenv config-rm xdebug.ini || true; fi
- composer selfupdate
- mkdir -p build/logs
script:
- travis_retry composer install --no-interaction
- composer style-check
- if [[ "$WITH_COVERAGE" == "true" ]]; then vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml --coverage-text; else vendor/bin/phpunit -c phpunit.xml; fi
- if [[ "$WITH_COVERAGE" == "true" ]]; then vendor/bin/coveralls -v; fi;