* [FIX] Set coverage mode through env var

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2020-12-20 17:51:32 +01:00
parent 900008292b
commit 5e3281bce8
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
script: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite Core
script: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite Core
after_script:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then mv ./tests/_output/coverage-clover.xml clover.xml && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t clover; fi

View File

@@ -1,6 +1,6 @@
#!/bin/bash
DB_HOST=$(docker inspect syspass-db-test --format {{.NetworkSettings.Networks.bridge.IPAddress}})
DB_HOST=$(docker inspect ${DB_CONTAINER} --format {{.NetworkSettings.Networks.bridge.IPAddress}})
if [[ -z "${DB_HOST}" ]]; then
echo "Unknown host"