-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (30 loc) · 979 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
sudo: true
language: php
php:
- hhvm
- 7
- 7.1
matrix:
include:
- php: hhvm
env: dependencies=lowest
- php: 7
env: dependencies=lowest
- php: 7.1
env: dependencies=lowest
before_install:
before_script:
- sudo add-apt-repository ppa:pinepain/libv8-5.2 -y
- sudo apt-get update -q
- sudo apt-get install -y libv8-5.2-dev
- printf "\n" | pecl install -f v8js
- phpenv config-add travis.php.ini
- composer self-update
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest; fi;
script:
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi