forked from jeremykendall/php-domain-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (63 loc) · 2.31 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
58
59
60
61
62
63
language: php
sudo: false
cache:
directories:
- "$HOME/.composer/cache"
matrix:
include:
- php: 7.2
env:
- COLLECT_COVERAGE=false
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
- RUN_PHPSTAN=false
- VALIDATE_CODING_STYLE=false
- php: 7.2
env:
- COLLECT_COVERAGE=true
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
- RUN_PHPSTAN=true
- VALIDATE_CODING_STYLE=true
- php: 7.3
env:
- COLLECT_COVERAGE=false
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
- RUN_PHPSTAN=false
- VALIDATE_CODING_STYLE=false
- php: 7.3
env:
- COLLECT_COVERAGE=true
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
- RUN_PHPSTAN=true
- VALIDATE_CODING_STYLE=true
- php: 7.4
env:
- COLLECT_COVERAGE=false
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
- RUN_PHPSTAN=false
- VALIDATE_CODING_STYLE=false
- php: 7.4
env:
- COLLECT_COVERAGE=true
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
- RUN_PHPSTAN=true
- VALIDATE_CODING_STYLE=true
- php: nightly
env:
- COLLECT_COVERAGE=false
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --ignore-platform-reqs"
- RUN_PHPSTAN=false
- VALIDATE_CODING_STYLE=false
allow_failures:
- php: nightly
fast_finish: true
before_install:
- travis_retry composer self-update
install:
- travis_retry composer update $COMPOSER_ARGS
script:
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
- if [ "$RUN_PHPSTAN" == "true" ]; then composer phpstan; 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