Skip to content

Commit 5e3281b

Browse files
committed
* [FIX] Set coverage mode through env var
Signed-off-by: Rubén D <[email protected]>
1 parent 9000082 commit 5e3281b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ before_script:
2222
- composer self-update
2323
- composer install --prefer-source --no-interaction --dev
2424

25-
script: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite Core
25+
script: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite Core
2626

2727
after_script:
2828
- 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

tests/res/scripts/reset_db.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
DB_HOST=$(docker inspect syspass-db-test --format {{.NetworkSettings.Networks.bridge.IPAddress}})
3+
DB_HOST=$(docker inspect ${DB_CONTAINER} --format {{.NetworkSettings.Networks.bridge.IPAddress}})
44

55
if [[ -z "${DB_HOST}" ]]; then
66
echo "Unknown host"

0 commit comments

Comments
 (0)