-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
33 lines (27 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
32
33
language: php
php:
- 8.0
- 7.4
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
sudo: false
## Cache composer bits
cache:
directories:
- $HOME/.cache/composer
before_script:
- composer install --dev --no-interaction --prefer-dist
- if ! [[ $(phpenv version-name) =~ 7.3 ]] ; then phpenv config-rm xdebug.ini || true ; fi
- if [[ $(phpenv version-name) =~ 7.2 ]] ; then test -f $HOME/.cache/composer/phpstan-0.11.8.phar || wget https://github.com/phpstan/phpstan/releases/download/0.11.8/phpstan.phar -O $HOME/.cache/composer/phpstan-0.11.8.phar; fi
matrix:
allow_failures:
- php: nightly
fast_finish: true
script:
- php -derror_reporting="E_ALL & ~E_DEPRECATED" -dxdebug.mode=coverage ./vendor/bin/phpunit -v --configuration phpunit.xml --coverage-text --coverage-clover=coverage.xml
- if [[ $(phpenv version-name) =~ 7.2 ]] ; then make lint; fi
after_script:
- if [[ $(phpenv version-name) =~ 7.3 ]] ; then bash <(curl -s https://codecov.io/bash); fi