File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 - 5.5
66 - 5.6
77 - 7.0
8+ - 7.1
89
910sudo : false
1011
@@ -24,28 +25,24 @@ matrix:
2425 - php : 7.0
2526 env : PHPCS=1 DEFAULT=0
2627
27- - php : 7.0
28- env : CODECOVERAGE=1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
29-
3028before_script :
31- - sh -c " if [ '$DEFAULT' = '1' ] ; then phpenv config-rm xdebug.ini; fi"
29+ - if [[ $TRAVIS_PHP_VERSION != 7.0 ]] ; then phpenv config-rm xdebug.ini; fi
3230
3331 - composer self-update
3432 - composer install --prefer-dist --no-interaction
3533
36- - sh -c " if [ ' $DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
37- - sh -c " if [ ' $DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
34+ - if [[ $DB = 'mysql' ]] ; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
35+ - if [[ $DB = 'pgsql' ]] ; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
3836
39- - sh -c " if [ ' $PHPCS' = '1' ] ; then composer require cakephp/cakephp-codesniffer:dev-master ; fi"
37+ - if [[ $PHPCS = 1 ]] ; then composer require cakephp/cakephp-codesniffer:"^3.0" ; fi
4038
4139script :
42- - sh -c " if [ ' $DEFAULT' = '1' ] ; then phpunit --stderr ; fi"
43-
44- - sh -c " if [ ' $PHPCS' = '1' ] ; then ./ vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"
40+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]] ; then vendor/bin/ phpunit; fi
41+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
42+ - if [[ $PHPCS = 1 ]] ; then vendor/bin/phpcs -n - p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
4543
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"
44+ after_success :
45+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
4946
5047notifications :
5148 email : false
Original file line number Diff line number Diff line change 11{
22 "name" : " muffin/trash" ,
3- "description" : " Adds soft delete support to CakePHP 3 ORM tables." ,
3+ "description" : " Adds soft delete support to CakePHP 3 ORM tables." ,
44 "type" : " cakephp-plugin" ,
55 "keywords" : [
66 " cakephp" ,
3131 "source" : " https://github.com/usemuffin/trash"
3232 },
3333 "require" : {
34- "cakephp/orm" : " 3.* "
34+ "cakephp/orm" : " ^3.0 "
3535 },
3636 "require-dev" : {
37- "phpunit/phpunit" : " ^4.8" ,
38- "cakephp/cakephp" : " 3.*" ,
39- "cakephp/cakephp-codesniffer" : " ^2.1"
37+ "phpunit/phpunit" : " <6.0" ,
38+ "cakephp/cakephp" : " ^3.0"
4039 },
4140 "autoload" : {
4241 "psr-4" : {
You can’t perform that action at this time.
0 commit comments