-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
47 lines (34 loc) · 1.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
45
46
language: php
sudo: false
php:
- 7.3
- 7.4
- 8.0
env:
- DEPS=normal
- DEPS=highest
- DEPS=lowest
matrix:
fast_finish: true
branches:
only:
- master
cache:
directories:
- $HOME/.composer/cache
notifications:
email: false
slack:
secure: ixWu6kWtNIlzzdImpu4MdvGYpA6ZPp/dQpMAp6FDO2oHHB55J9ossBYtVtBXPCDs9OxqfQl2yqbE+TkhfIfkZqIbhvX2+CiIomvYSKZDvryUlCfbfV29behmSVIVYvg3b8Tba+nAyZeJA2guUyAy02WGr3n4I+PDgZC3Wa/mv94=
before_install: travis_retry composer selfupdate
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