Skip to content

Commit b3c57b4

Browse files
authored
Merge pull request #20 from UseMuffin/maintenance
Maintenance
2 parents 510cf4f + e294cf0 commit b3c57b4

3 files changed

Lines changed: 14 additions & 18 deletions

File tree

.travis.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ php:
55
- 5.5
66
- 5.6
77
- 7.0
8+
- 7.1
89

910
sudo: 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-
3028
before_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

4139
script:
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

5047
notifications:
5148
email: false

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -31,12 +31,11 @@
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": {

src/empty

Whitespace-only changes.

0 commit comments

Comments
 (0)