-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (28 loc) · 823 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
sudo: false
language: php
env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
matrix:
include:
- php: 5.6
env:
- STAN=off
- php: 7.0
env:
- STAN=on
- php: 7.1
env:
- STAN=on
before_install:
- composer self-update
install:
- if [[ $STAN == 'off' ]]; then travis_retry composer remove --dev phpstan/phpstan ; fi
- travis_retry composer install --no-interaction --ignore-platform-reqs
script:
- ./vendor/bin/phpunit --configuration phpunit.xml.dist test
- ./vendor/bin/phpcs
- if [[ $STAN == 'on' ]]; then ./vendor/bin/phpstan analyze -l 3 src/ ; fi
after_script:
- composer require --dev satooshi/php-coveralls:^1.0
- ./vendor/bin/coveralls