-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (30 loc) · 905 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
php:
- 7.1
- 7.2
- 7.3
env:
- DEPS=normal
- DEPS=highest
- DEPS=lowest
matrix:
fast_finish: true
branches:
only:
- master
cache:
directories:
- $HOME/.composer/cache
before_install: travis_retry composer selfupdate --preview
install:
- if [ "$DEPS" = "normal" ]; then travis_retry composer install --no-interaction; fi;
- if [ "$DEPS" = "highest" ]; then travis_retry composer update --no-interaction; fi;
- if [ "$DEPS" = "lowest" ]; then travis_retry composer update --no-interaction --prefer-lowest --prefer-stable; fi;
before_script:
- mkdir -p build/logs
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- test -e build/logs/clover.xml && wget https://scrutinizer-ci.com/ocular.phar
- test -e build/logs/clover.xml && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml