-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.25 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
language: php
sudo: false
notifications:
email: [email protected]
branches:
except:
- /^analysis-.*$/
matrix:
fast_finish: true
include:
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
- php: 5.4
- php: 5.3
dist: precise
- php: 5.4
env: RUNKIT=1
- php: hhvm
sudo: required
dist: trusty
group: edge
before_install:
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then echo 'xdebug.enable = on' >> /etc/hhvm/php.ini; fi
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
before_script:
- if [ "$RUNKIT" = "1" ]; then git clone --depth=1 git://github.com/zenovich/runkit.git; fi;
- if [ "$RUNKIT" = "1" ]; then cd runkit && phpize && ./configure && make && make install && cd ../; fi;
- if [ "$RUNKIT" = "1" ]; then phpenv config-add tests/travis.runkit.ini; fi;
- composer install --prefer-dist --no-interaction --no-scripts --no-progress
script:
- vendor/bin/phpunit --coverage-clover build/coverage-clover.xml
after_script:
- vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage-clover.xml
- vendor/bin/coveralls -v -c .coveralls.yml