Skip to content

Commit

Permalink
fix exclude groups
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe committed Aug 23, 2019
1 parent 67c9bb0 commit b18a539
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b18a539

Please sign in to comment.