forked from loopline-systems/closeio-api-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (26 loc) · 841 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
language: php
php:
- 5.6
- 7.1
- 7.2
- master
env:
- dependencies=lowest
- dependencies=highest
matrix:
allow_failures:
- php: master
env: dependencies=lowest
- php: master
env: dependencies=highest
before_script:
- composer self-update
- if [ "$dependencies" = "lowest" ]; then composer update --no-interaction --prefer-lowest; fi;
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi;
script:
- mkdir -p build/logs
- vendor/bin/phpunit
- if [ "$TRAVIS_PHP_VERSION" != "5.6" ] && [ "$dependencies" = "highest" ]; then composer require --dev phpstan/phpstan; fi;
- if [ "$TRAVIS_PHP_VERSION" != "5.6" ] && [ "$dependencies" = "highest" ]; then php vendor/bin/phpstan analyze --level=4 src tests; fi;
after_script:
- php vendor/bin/php-coveralls -v