Merge pull request #1761 from open-sausages/pulls/4.0/fix-coverage-test

BUG Fix PHPUNIT_COVERAGE_TEST by moving to php 5 build
This commit is contained in:
Ingo Schommer 2017-03-15 13:53:55 +13:00 committed by GitHub
commit b05b3bb8c7

View File

@ -17,8 +17,8 @@ env:
matrix:
include:
- php: 5.5
env: DB=MYSQL PHPUNIT_TEST=1
- php: 5.6
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1
- php: 5.5
env: DB=PGSQL PHPUNIT_TEST=1
- php: 5.5
@ -32,7 +32,7 @@ matrix:
- php: 7.0
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
before_script:
- composer self-update || true
@ -58,7 +58,7 @@ script:
- "if [ \"$NPM_TEST\" = \"1\" ]; then git diff-files --quiet -w; fi"
- "if [ \"$NPM_TEST\" = \"1\" ]; then git diff -w --no-color; fi"
- "if [ \"$NPM_TEST\" = \"1\" ]; then (nvm use $TRAVIS_NODE_VERSION && npm run lint); fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then phpdbg -qrr vendor/bin/phpunit tests flush=1 --coverage-clover=coverage.xml; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then vendor/bin/phpunit tests flush=1 --coverage-clover=coverage.xml; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi"
- "if [ \"$PHPCS_TEST\" = \"1\" ]; then composer run-script lint; fi"