File tree Expand file tree Collapse file tree 5 files changed +37
-9
lines changed Expand file tree Collapse file tree 5 files changed +37
-9
lines changed Original file line number Diff line number Diff line change 4
4
- 7.0
5
5
- 7.1
6
6
- 7.2
7
- - hhvm
7
+ - 7.3
8
8
9
- install : composer install --no-interaction --classmap-authoritative
9
+ install :
10
+ - composer install --no-interaction --classmap-authoritative
11
+ - composer require --no-interaction php-coveralls/php-coveralls:^2.0
10
12
11
- script : vendor/bin/phpunit --configuration phpunit.xml
13
+ script :
14
+ - chmod +x run-phpunit.sh
15
+ - ./run-phpunit.sh
12
16
13
17
after_success : vendor/bin/php-coveralls --verbose
14
18
Original file line number Diff line number Diff line change 3
3
[ ![ Build Status] ( https://travis-ci.org/Ekman/Luhn-Algorithm.svg?branch=master )] ( https://travis-ci.org/Ekman/Luhn-Algorithm )
4
4
[ ![ Coverage Status] ( https://coveralls.io/repos/github/Ekman/Luhn-Algorithm/badge.svg )] ( https://coveralls.io/github/Ekman/Luhn-Algorithm )
5
5
6
- This is an implementation of the Luhn Algorithm for PHP and HHVM . The Luhn Algorithm is
6
+ This is an implementation of the Luhn Algorithm for PHP. The Luhn Algorithm is
7
7
used to validate things like credit cards and national identification numbers.
8
8
More information on the algorithm can be found at [ Wikipedia] ( http://en.wikipedia.org/wiki/Luhn_algorithm ) .
9
9
Original file line number Diff line number Diff line change 35
35
},
36
36
"require" : {
37
37
"php" : " ^7.0"
38
- },
39
- "require-dev" : {
40
- "phpunit/phpunit" : " ^6.0" ,
41
- "friendsofphp/php-cs-fixer" : " ^2.0" ,
42
- "php-coveralls/php-coveralls" : " ^2.0"
43
38
}
44
39
}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ #
4
+ # Runs code standard fixer without having the need to specify it as a
5
+ # Composer dependency.
6
+ #
7
+
8
+ composer require --no-interaction friendsofphp/php-cs-fixer:^2.0
9
+
10
+ vendor/bin/php-cs-fixer --config=.php_cs.dist --no-interaction fix
11
+
12
+ composer remove --no-interaction friendsofphp/php-cs-fixer
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ #
4
+ # Runs code standard fixer without having the need to specify it as a
5
+ # Composer dependency.
6
+ #
7
+
8
+ if [ $TRAVIS ]; then
9
+ # No need to install PHPunit
10
+ phpunit --configuration phpunit.xml
11
+ else
12
+ composer require --no-interaction phpunit/phpunit:^6.0
13
+
14
+ vendor/bin/phpunit --configuration phpunit.xml
15
+
16
+ composer remove --no-interaction phpunit/phpunit
17
+ fi ;
You can’t perform that action at this time.
0 commit comments