File tree 3 files changed +23
-9
lines changed
3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1
- checks :
2
- php : true
3
-
4
1
filter :
5
- excluded_paths :
6
- - src/Docker/Tests/*
2
+ paths : [src/*]
3
+ checks :
4
+ php :
5
+ code_rating : true
6
+ duplication : true
7
+ tools :
8
+ external_code_coverage : true
9
+ php_code_sniffer :
10
+ config :
11
+ standard : " PSR2"
Original file line number Diff line number Diff line change 15
15
- 7.0
16
16
- hhvm
17
17
18
+ env :
19
+ global :
20
+ - TEST_COMMAND="composer test"
21
+
18
22
matrix :
19
23
allow_failures :
20
24
- php : hhvm
@@ -24,7 +28,7 @@ matrix:
24
28
sudo : required
25
29
services :
26
30
- docker
27
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
31
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
28
32
29
33
before_install :
30
34
- travis_retry composer self-update
@@ -35,7 +39,11 @@ install:
35
39
- docker run -p 5000:5000 -d registry
36
40
37
41
script :
38
- - bin/phpunit
42
+ - $TEST_COMMAND
43
+
44
+ after_success :
45
+ - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
46
+ - if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
39
47
40
48
after_script :
41
49
- sudo cat /var/log/upstart/docker.log
Original file line number Diff line number Diff line change 27
27
"require-dev" : {
28
28
"phpunit/phpunit" : " ~3.7"
29
29
},
30
- "config" : {
31
- "bin-dir" : " bin"
30
+ "scripts" : {
31
+ "test" : " vendor/bin/phpunit" ,
32
+ "test-ci" : " vendor/bin/phpunit --coverage-clover build/coverage.xml"
32
33
},
33
34
"minimum-stability" : " dev" ,
34
35
"prefer-stable" : true
You can’t perform that action at this time.
0 commit comments