diff --git a/.travis.yml b/.travis.yml index 86b9411..39680ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,14 +28,14 @@ script: fi - | if [ "x$COVERAGE" == "xyes" ]; then - if [[ -z "${EXCLUDE_GROUP}" ]]; then + if [ "x$EXCLUDE_GROUP" != "x" ]; then ./vendor/bin/phpunit --configuration phpunit.travis.xml --exclude-group $EXCLUDE_GROUP --coverage-clover build/logs/clover.xml else ./vendor/bin/phpunit --configuration phpunit.travis.xml --coverage-clover build/logs/clover.xml fi else - if [[ -z "${EXCLUDE_GROUP}" ]]; then - ./vendor/bin/phpunit --configuration phpunit.travis.xml --group $EXCLUDEGROUP + if [ "x$EXCLUDE_GROUP" != "x" ]; then + ./vendor/bin/phpunit --configuration phpunit.travis.xml --exclude-group $EXCLUDE_GROUP else ./vendor/bin/phpunit --configuration phpunit.travis.xml fi diff --git a/tests.sh b/tests.sh index 2e9f0a0..8909dc4 100755 --- a/tests.sh +++ b/tests.sh @@ -2,4 +2,8 @@ psql postgres -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'testing'" | grep -q 1 || psql postgres -U postgres -c "CREATE DATABASE testing" composer lint -php -d pcov.directory='.' vendor/bin/phpunit --coverage-html build +if [ "x$EXCLUDE_GROUP" != "x" ]; then + php -d pcov.directory='.' vendor/bin/phpunit --exclude-group $EXCLUDE_GROUP --coverage-html build +else + php -d pcov.directory='.' vendor/bin/phpunit --coverage-html build +fi