-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (46 loc) · 1.29 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
language: php
matrix:
include:
- php: 7.1
env:
- PHPUNIT_FLAGS="--coverage-clover coverage.xml"
- COMPOSER_FLAGS=""
- php: 7.1
env:
- PHPSTAN=true
- COMPOSER_FLAGS=""
- php: 7.2
env:
- PHPUNIT_FLAGS="--coverage-clover coverage.xml"
- COMPOSER_FLAGS=""
- php: 7.2
env:
- PHPSTAN=true
- COMPOSER_FLAGS=""
- php: 7.3
env:
- PHPUNIT_FLAGS="--coverage-clover coverage.xml"
- COMPOSER_FLAGS="--ignore-platform-reqs"
- php: 7.3
env:
- CODING_STANDARD=true
- COMPOSER_FLAGS="--ignore-platform-reqs"
- php: 7.3
env:
- PHPSTAN=true
- COMPOSER_FLAGS="--ignore-platform-reqs"
install:
- composer install $COMPOSER_FLAGS
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- if [[ $CODING_STANDARD != "" ]]; then vendor/bin/ecs check src tests; fi
- if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src tests --level max --configuration phpstan.neon; fi
after_script:
# upload coverage.xml file to Scrutinizer to analyze it
- |
if [[ "$PHPUNIT_FLAGS" != "" ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi
notifications:
email: never