forked from PHP-DI/PHP-DI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 983 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
36
37
38
language: php
sudo: false
notifications:
email:
on_success: never
php:
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 7.0
env: dependencies=lowest
cache:
directories:
- $HOME/.composer/cache
before_script:
- if [[ $(phpenv version-name) == '7.1' ]]; then composer require satooshi/php-coveralls '~1.0' -n ; fi
- if [[ $(phpenv version-name) != '7.1' ]]; then composer install -n ; fi
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
script:
- if [[ $(phpenv version-name) == '7.1' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $(phpenv version-name) != '7.1' ]]; then vendor/bin/phpunit ; fi
- if [[ $(phpenv version-name) != '7.1' ]]; then vendor/bin/phpstan analyse -l 6 -c phpstan.neon src ; fi
after_script:
- if [[ $(phpenv version-name) == '7.1' ]]; then php vendor/bin/coveralls -v ; fi