File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ matrix:
2525 env : PHPCS=1 DEFAULT=0
2626
2727 - php : 7.0
28- env : COVERALLS =1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
28+ env : CODECOVERAGE =1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
2929
3030before_script :
31- - sh -c "if [ '$COVERALLS ' != '1' ]; then phpenv config-rm xdebug.ini; fi"
31+ - sh -c "if [ '$CODECOVERAGE ' != '1' ]; then phpenv config-rm xdebug.ini; fi"
3232
3333 - composer self-update
3434 - composer install --prefer-dist --no-interaction
@@ -38,16 +38,14 @@ before_script:
3838
3939 - sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:dev-master; fi"
4040
41- - sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
42- - sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
43-
4441script :
4542 - sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi"
4643
4744 - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
4845
49- - sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --coverage-clover build/logs/clover.xml || true; fi"
50- - sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/coveralls -v; fi"
46+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpunit --coverage-clover=clover.xml; fi"
47+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi"
48+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi"
5149
5250notifications :
5351 email : false
Original file line number Diff line number Diff line change 11# CakePHP JWT Authenticate plugin
22
33[ ![ Build Status] ( https://img.shields.io/travis/ADmad/cakephp-jwt-auth/master.svg?style=flat-square )] ( https://travis-ci.org/ADmad/cakephp-jwt-auth )
4- [ ![ Coverage] ( https://img.shields.io/coveralls/ ADmad/cakephp-jwt-auth/master .svg?style=flat-square )] ( https://coveralls .io/r /ADmad/cakephp-jwt-auth )
4+ [ ![ Coverage] ( https://img.shields.io/codecov/c/github/ ADmad/cakephp-jwt-auth.svg?style=flat-square )] ( https://codecov .io/github /ADmad/cakephp-jwt-auth )
55[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/ADmad/cakephp-jwt-auth.svg?style=flat-square )] ( https://packagist.org/packages/ADmad/cakephp-jwt-auth )
66[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )] ( LICENSE.txt )
77
Original file line number Diff line number Diff line change 3232 <filter >
3333 <whitelist >
3434 <directory suffix =" .php" >./src/</directory >
35- <directory suffix =" .ctp" >./src/</directory >
3635 </whitelist >
3736 </filter >
3837</phpunit >
You can’t perform that action at this time.
0 commit comments