-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 926 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
35
36
37
38
39
40
41
language: php
sudo: false
dist: trusty
php:
- 7.1
- 7.2
- 7.3
- nightly
- hhvm-nightly
matrix:
include:
- php: 7.1
env: dependencies=lowest
- php: 7.1
env: dependencies=highest
- php: 7.2
env: dependencies=lowest
- php: 7.2
env: dependencies=highest
- php: 7.3
env: dependencies=lowest
- php: 7.3
env: dependencies=highest
allow_failures:
- php: hhvm-nightly
- php: nightly
before_script:
- composer self-update -q
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover