|
|
@@ -20,8 +20,8 @@ matrix:
|
|
|
- php: 7.0
|
|
|
env: PHPCS=1 DEFAULT=0
|
|
|
|
|
|
- - php: 5.5
|
|
|
- env: COVERALLS=1 DEFAULT=0
|
|
|
+ - php: 7.0
|
|
|
+ env: CODECOVERAGE=1 DEFAULT=0
|
|
|
|
|
|
allow_failures:
|
|
|
- env: DB=pgsql db_class='Cake\Database\Driver\Postgres' db_dsn='pgsql:host=127.0.0.1;dbname=cakephp_test' db_database="cakephp_test" db_username='postgres' db_password=''
|
|
|
@@ -47,10 +47,12 @@ before_script:
|
|
|
- cp phpunit.xml.dist phpunit.xml
|
|
|
|
|
|
script:
|
|
|
- - sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --coverage-clover build/logs/clover.xml; fi"
|
|
|
- - sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -c .coveralls.yml -v; fi"
|
|
|
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi"
|
|
|
- sh -c "if [ '$PHPCS' = '1' ]; then phpcs -p --extensions=php --standard=CakePHP --ignore=vendor --ignore=tests --ignore=docs . ; fi"
|
|
|
|
|
|
+ - sh -c "if [ '$CODECOVERAGE' = '1' ]; then 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 bash codecov.sh; fi"
|
|
|
+
|
|
|
notifications:
|
|
|
email: false
|