-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (35 loc) · 1 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.2
- 7.3
env:
- DEPENDENCIES='low'
- DEPENDENCIES='stable'
- DEPENDENCIES='dev'
matrix:
exclude:
- php: 7.3
env: DEPENDENCIES='low'
allow_failures:
- env: DEPENDENCIES='dev'
fast_finish: true
before_install:
- composer selfupdate
- if [ "$DEPENDENCIES" == "low" ]; then composer config disable-tls true; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer config secure-http false; fi;
install:
- phpenv rehash
- if [ "$DEPENDENCIES" == "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;
script:
- './vendor/bin/phpunit --testdox --coverage-clover=clover.xml'
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
notifications:
email: false