-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (32 loc) · 942 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
cache:
directories:
- $HOME/.composer/cache/files
- ./vendor/bin/.phpunit
env:
global:
- COMPOSER_FLAGS="--prefer-dist --no-progress --no-interaction --no-suggest"
- PHPUNIT_FLAGS="-v"
matrix:
fast_finish: true
include:
- php: 7.2
- php: 7.3
- php: 7.4
env: COVERAGE=true RUN_PHPSTAN=true PHPUNIT_FLAGS="-v --coverage-clover=coverage.xml --coverage-text"
- php: nightly
env: dependencies=unstable
allow_failures:
- php: nightly
before_install:
- if [ "$dependencies" == "unstable" ]; then composer config minimum-stability dev; fi
install:
- composer install ${COMPOSER_FLAGS}
before_script:
- composer validate --strict --no-check-lock
script:
- vendor/bin/phpunit ${PHPUNIT_FLAGS}
- if [ "$RUN_PHPSTAN" == "true" ]; then composer phpstan; fi
after_success:
- if [[ $COVERAGE = true ]]; then bash <(curl -s https://codecov.io/bash); fi