File tree 6 files changed +502
-41
lines changed
6 files changed +502
-41
lines changed Original file line number Diff line number Diff line change
1
+ service_name : travis-ci
2
+ src_dir : .
3
+ coverage_clover : clover.xml
4
+ json_path : coveralls-upload.json
Original file line number Diff line number Diff line change 3
3
- 5.6
4
4
- 5.5
5
5
- 5.4
6
- script : php build.php
6
+ script : ./build.php
7
+ after_script : ./vendor/bin/coveralls -v
Original file line number Diff line number Diff line change 1
1
# DWS Coding Standard
2
2
[ ![ Build Status] ( https://travis-ci.org/dominionenterprises/dws-coding-standard.png )] ( https://travis-ci.org/dominionenterprises/dws-coding-standard )
3
+ [ ![ Code Coverage] ( http://img.shields.io/coveralls/dominionenterprises/dws-coding-standard.svg?style=flat )] ( https://coveralls.io/r/dominionenterprises/dws-coding-standard )
3
4
4
5
A fairly complete [ PHP_CodeSniffer] ( http://www.squizlabs.com/php-codesniffer ) coding standard. See the [ standard document] ( standard.md ) to
5
6
see what "sniffs" are enforced.
Original file line number Diff line number Diff line change 23
23
exit (1 );
24
24
}
25
25
26
+ $ cloverCoverage = new PHP_CodeCoverage_Report_Clover ();
27
+ file_put_contents ('clover.xml ' , $ cloverCoverage ->process ($ result ->getCodeCoverage ()));
28
+
26
29
$ coverageFactory = new PHP_CodeCoverage_Report_Factory ();
27
30
$ coverageReport = $ coverageFactory ->create ($ result ->getCodeCoverage ());
28
31
if ($ coverageReport ->getNumExecutedLines () !== $ coverageReport ->getNumExecutableLines ()) {
Original file line number Diff line number Diff line change 25
25
"squizlabs/php_codesniffer" : " ~1.4.8"
26
26
},
27
27
"require-dev" : {
28
- "phpunit/phpunit" : " ~4.1"
28
+ "phpunit/phpunit" : " ~4.1" ,
29
+ "satooshi/php-coveralls" : " ~0.6.1"
29
30
}
30
31
}
You can’t perform that action at this time.
0 commit comments