Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Fix coverage clover
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Aug 16, 2017
1 parent 3778756 commit d71c83d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function run_phpunit_travisci {

INITIAL_DIR=$(pwd)
if [ -n "$PHPUNIT_CONFIG" ]; then
phpunit $( if [ -n "$PHPUNIT_CONFIG" ]; then echo -c "$PHPUNIT_CONFIG"; fi )
phpunit $( if [ -n "$PHPUNIT_CONFIG" ]; then echo -c "$PHPUNIT_CONFIG"; fi ) $(coverage_clover)
else
for project in $( find_phpunit_dirs ); do
(
Expand Down
4 changes: 2 additions & 2 deletions travis.after_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
set -e
set -v

if can_generate_coverage_clover && [ -s "$TEMP_DIRECTORY/paths-scope-php" ] && [ -n "$PHPUNIT_COVERAGE_DIR" ]; then
cd "$PHPUNIT_COVERAGE_DIR"
if can_generate_coverage_clover && [ -s "$TEMP_DIRECTORY/paths-scope-php" ] && [ -n "$INITIAL_DIR" ]; then
cd "$INITIAL_DIR"
php vendor/bin/coveralls -vvv
cd - > /dev/null
fi

0 comments on commit d71c83d

Please sign in to comment.