-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
47 lines (41 loc) · 1.22 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
42
43
44
45
46
47
language: php
sudo: false
dist: trusty
group: edge
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm-3.9
- hhvm-3.12
- hhvm-3.15
- hhvm-3.17
- hhvm-nightly
matrix:
fast_finish: true
allow_failures:
- php: hhvm-3.9
- php: hhvm-3.12
- php: hhvm-3.15
- php: hhvm-3.17
- php: hhvm-nightly
before_script:
#- 'travis_retry composer self-update'
- 'travis_retry composer install --no-interaction --prefer-source -o'
- 'wget https://scrutinizer-ci.com/ocular.phar'
- 'phpenv rehash'
script:
- 'mkdir -p build/logs'
- 'php bin/phpunit -c phpunit.xml.dist'
after_success:
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php bin/coveralls -v; fi;'
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php bin/test-reporter --stdout > codeclimate.json; fi;'
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then curl -X POST -d @codeclimate.json -H "Content-Type: application/json" -H "User-Agent: Code Climate (PHP Test Reporter v0.1.1)" https://codeclimate.com/test_reports; fi;'
- 'if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
- travis_retry php bin/coveralls -v
notifications:
email:
- 'vasusen@wepay.com'