File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,42 @@ sudo: false
4
4
5
5
dist : trusty
6
6
7
+ branches :
8
+ only :
9
+ - master
10
+
7
11
git :
8
12
depth : 5
9
13
10
14
php :
11
15
- 5.6
12
16
- 7.0
13
17
- 7.1
18
+ - 7.2
14
19
- hhvm
15
20
- nightly
16
21
17
22
matrix :
18
23
fast_finish : true
24
+ include :
25
+ - php : 7.1
26
+ env : PHPCS=PSR2
27
+
19
28
allow_failures :
20
29
- php : nightly
21
30
22
31
before_script :
23
- - composer self-update
24
- - composer install
32
+ - export PATH="./vendor/bin:$PATH"
33
+ - travis_retry composer self-update
34
+ - travis_retry composer install --no-interaction --prefer-source --dev
25
35
26
36
script :
27
- - composer test
37
+ - phpunit
38
+ - |
39
+ if [[ "$PHPCS" ]] ; then
40
+ phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php')
41
+ fi
42
+ phpunit --coverage-clover=coverage.xml
43
+
44
+ after_success :
45
+ - bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.
0 commit comments