File tree Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ service_name : travis-ci
2
+ coverage_clover : /tmp/coverage-clover.xml
3
+ json_path : /tmp/coveralls-upload.json
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ install: composer install --no-interaction --classmap-authoritative
10
10
11
11
script : vendor/bin/phpunit --configuration phpunit.xml
12
12
13
+ after_success : vendor/bin/php-coveralls --verbose
14
+
13
15
notifications :
14
16
email : false
15
17
Original file line number Diff line number Diff line change 1
1
# Luhn Algorithm
2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/Ekman/Luhn-Algorithm.svg?branch=master )] ( https://travis-ci.org/Ekman/Luhn-Algorithm )
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/Ekman/Luhn-Algorithm/badge.svg )] ( https://coveralls.io/github/Ekman/Luhn-Algorithm )
4
5
5
6
This is an implementation of the Luhn Algorithm for PHP and HHVM. The Luhn Algorithm is
6
7
used to validate things like credit cards and national identification numbers.
Original file line number Diff line number Diff line change 38
38
},
39
39
"require-dev" : {
40
40
"phpunit/phpunit" : " ^6.0" ,
41
- "friendsofphp/php-cs-fixer" : " ^2.0"
41
+ "friendsofphp/php-cs-fixer" : " ^2.0" ,
42
+ "php-coveralls/php-coveralls" : " ^2.0"
42
43
}
43
44
}
Original file line number Diff line number Diff line change 1
1
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
2
xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/6.5/phpunit.xsd"
3
3
bootstrap =" vendor/autoload.php" >
4
-
5
4
<testsuites >
6
5
<testsuite name =" Luhn Algorithm tests" >
7
6
<directory >tests/</directory >
8
7
</testsuite >
9
8
</testsuites >
9
+ <filter >
10
+ <whitelist >
11
+ <directory suffix =" .php" >src</directory >
12
+ </whitelist >
13
+ </filter >
14
+ <logging >
15
+ <log type =" coverage-clover" target =" /tmp/coverage-clover.xml" />
16
+ </logging >
10
17
</phpunit >
You can’t perform that action at this time.
0 commit comments