File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 - 5.4
55 - 5.5
66 - 5.6
7+ - 7.0
78
89sudo : false
910
@@ -20,29 +21,31 @@ matrix:
2021 fast_finish : true
2122
2223 include :
23- - php : 5.4
24+ - php : 7.0
2425 env : PHPCS=1 DEFAULT=0
2526
26- - php : 5.4
27- env : COVERALLS =1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
27+ - php : 7.0
28+ env : CODECOVERAGE =1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
2829
2930before_script :
31+ - phpenv config-rm xdebug.ini
32+
3033 - composer self-update
3134 - composer install --prefer-dist --no-interaction
3235
3336 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
3437 - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
3538
36- - sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:dev-master; fi"
37-
38- - sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
39- - sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
39+ - sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer; fi"
4040
4141script :
42- - sh -c "if [ '$DEFAULT' = '1' ]; then phpunit --stderr; fi"
43- - sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
44- - sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
45- - sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -c .coveralls.yml -v; fi"
42+ - sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit; fi"
43+
44+ - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
45+
46+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml || true; 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"
4649
4750notifications :
4851 email : false
Original file line number Diff line number Diff line change 11# Tags
22
33[ ![ Build Status] ( https://img.shields.io/travis/UseMuffin/Tags/master.svg?style=flat-square )] ( https://travis-ci.org/UseMuffin/Tags )
4- [ ![ Coverage] ( https://img.shields.io/coveralls/ UseMuffin/Tags/master .svg?style=flat-square )] ( https://coveralls .io/r /UseMuffin/Tags )
4+ [ ![ Coverage] ( https://img.shields.io/codecov/c/github/ UseMuffin/Tags.svg?style=flat-square )] ( https://codecov .io/github /UseMuffin/Tags )
55[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/muffin/tags.svg?style=flat-square )] ( https://packagist.org/packages/muffin/tags )
66[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )] ( LICENSE )
77
Original file line number Diff line number Diff line change 2929 "issues" : " https://github.com/usemuffin/tags/issues" ,
3030 "source" : " https://github.com/usemuffin/tags"
3131 },
32+ "require" : {
33+ "cakephp/orm" : " ~3.0"
34+ },
3235 "require-dev" : {
3336 "cakephp/cakephp" : " ~3.0" ,
34- "cakephp/cakephp-codesniffer" : " 2.*" ,
35- "phpunit/phpunit" : " 4.1.*" ,
36- "muffin/slug" : " dev-master"
37+ "phpunit/phpunit" : " ~4.1" ,
38+ "muffin/slug" : " ~1.0"
3739 },
3840 "autoload" : {
3941 "psr-4" : {
Original file line number Diff line number Diff line change 2222 </listener >
2323 </listeners >
2424
25- <!-- Prevent coverage reports from looking in tests and vendors -->
2625 <filter >
27- <blacklist >
28- <directory suffix =" .php" >./vendor/</directory >
29- <directory suffix =" .ctp" >./vendor/</directory >
30-
31- <directory suffix =" .php" >./tests/</directory >
32- <directory suffix =" .ctp" >./tests/</directory >
33- </blacklist >
26+ <whitelist >
27+ <directory suffix =" .php" >./src/</directory >
28+ </whitelist >
3429 </filter >
3530</phpunit >
You can’t perform that action at this time.
0 commit comments