Skip to content

Commit 20d0e21

Browse files
author
dereuromark
committed
scripts
1 parent 09b67d4 commit 20d0e21

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ matrix:
3131
before_script:
3232
- composer self-update
3333
- composer install --prefer-source --no-interaction
34-
35-
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.0"; fi
34+
35+
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^4.8|^5.7|^6.0"; fi
3636

3737
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
3838
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
}
4747
},
4848
"scripts": {
49+
"test": "php phpunit.phar",
50+
"test-setup": "[ ! -f phpunit.phar ] && wget https://phar.phpunit.de/phpunit-5.7.phar && mv phpunit-5.7.phar phpunit.phar || true",
4951
"cs-check": "phpcs -p --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/cakephp-queue/vendor/,/tmp/,/logs/,/config/Migrations/ --extensions=php ./",
5052
"cs-fix": "phpcbf -v --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/cakephp-queue/vendor/,/tmp/,/logs/,/config/Migrations/ --extensions=php ./"
5153
}

0 commit comments

Comments
 (0)