This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction --prefer-source --no-suggest"
matrix:
include:
- php: 7.2
env:
- COLLECT_COVERAGE=true
- IGNORE_PLATFORMS=false
- RUN_PHPSTAN=true
- VALIDATE_CODING_STYLE=false
- php: 7.3
env:
- COLLECT_COVERAGE=true
- IGNORE_PLATFORMS=false
- RUN_PHPSTAN=true
- VALIDATE_CODING_STYLE=true
- php: 7.4snapshot
env:
- COLLECT_COVERAGE=false
- IGNORE_PLATFORMS=true
- VALIDATE_CODING_STYLE=false
- RUN_PHPSTAN=false
- php: nightly
env:
- COLLECT_COVERAGE=false
- IGNORE_PLATFORMS=true
- VALIDATE_CODING_STYLE=false
- RUN_PHPSTAN=false
allow_failures:
- php: nightly
- php: 7.4snapshot
fast_finish: true
before_install:
- travis_retry composer self-update
install:
- if [ "$IGNORE_PLATFORMS" == "true" ]; then travis_retry composer update $COMPOSER_ARGS --ignore-platform-reqs; fi
- if [ "$IGNORE_PLATFORMS" == "false" ]; then travis_retry composer update $COMPOSER_ARGS; fi
script:
- if [ "$RUN_PHPSTAN" == "true" ]; then composer phpstan; fi
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
- composer phpunit
after_script:
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi