forked from graze/parallel-process
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (31 loc) · 802 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
language: php
dist: trusty
## Cache composer bits
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- nightly
env:
- PREFER_LOWEST=--prefer-lowest
- PREFER_LOWEST=
matrix:
allow_failures:
- php: 8.1
- php: nightly
before_script:
- composer config platform.php $(php -r "echo PHP_VERSION;")
- travis_retry composer update --no-interaction --prefer-dist $PREFER_LOWEST
script:
- vendor/bin/phpcs -p --warning-severity=0 src/ tests/
- vendor/bin/phpunit --coverage-clover=./tests/report/coverage.clover
after_script:
- test -f ./tests/report/coverage.clover && (wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover ./tests/report/coverage.clover)