|
@@ -28,7 +28,9 @@ matrix:
|
|
|
before_script:
|
|
before_script:
|
|
|
- composer self-update
|
|
- composer self-update
|
|
|
- composer install --prefer-dist --no-interaction
|
|
- composer install --prefer-dist --no-interaction
|
|
|
|
|
+
|
|
|
- composer require yangqi/htmldom:dev-master
|
|
- composer require yangqi/htmldom:dev-master
|
|
|
|
|
+ - if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.0"; fi
|
|
|
|
|
|
|
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
|
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
|
|
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
|
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
|
|
@@ -38,10 +40,10 @@ before_script:
|
|
|
- cp phpunit.xml.dist phpunit.xml
|
|
- cp phpunit.xml.dist phpunit.xml
|
|
|
|
|
|
|
|
script:
|
|
script:
|
|
|
- - sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi"
|
|
|
|
|
|
|
+ - sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit; fi"
|
|
|
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/vendor,/docs/,test_files/ . ; fi"
|
|
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/vendor,/docs/,test_files/ . ; fi"
|
|
|
|
|
|
|
|
- - sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpunit --coverage-clover=clover.xml || true; fi"
|
|
|
|
|
|
|
+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then vendor/bin/phpunit --coverage-clover=clover.xml || true; fi"
|
|
|
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi"
|
|
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi"
|
|
|
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi"
|
|
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi"
|
|
|
|
|
|