-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1 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
language: php
matrix:
include:
-
php: 'hhvm'
env:
- ANALYZE=false
-
php: '5.3'
env:
- ANALYZE=false
-
php: '5.4'
env:
- ANALYZE=false
-
php: '5.5'
env:
- ANALYZE=false
-
php: '5.6'
env:
- ANALYZE=false
-
php: '7.0'
env:
- ANALYZE=true
-
php: '7.1'
env:
- ANALYZE=true
-
php: 'nightly'
env:
- ANALYZE=true
before_script:
- composer update
script:
- vendor/bin/phpunit
- vendor/bin/phpcs
- if [ "$ANALYZE" = "true" ]; then composer global require phpstan/phpstan; fi;
- if [ "$ANALYZE" = "true" ]; then export PATH=~/.composer/vendor/bin:$PATH; fi;
- if [ "$ANALYZE" = "true" ]; then phpstan analyze sources tests; fi;