Skip to content

Commit

Permalink
fix: change directory for Coveralls report
Browse files Browse the repository at this point in the history
In order to use `git` commands for generating the Coveralls report, the
script needs to `cd` to `SMALLTALK_CI_HOME` first.

Fixes hpi-swa#626
  • Loading branch information
theseion committed Feb 9, 2024
1 parent 6a8c18c commit 49a43d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ export_coveralls_data() {
local service_pull_request=""
local url="unknown"

pushd "${SMALLTALK_CI_BUILD}" > /dev/null

if ! grep -q "#coverage" "${config_ston}"; then
return 0 # Coverage data not needed
fi
Expand Down Expand Up @@ -518,6 +520,9 @@ export_coveralls_data() {
}
}
EOL


popd "${SMALLTALK_CI_BUILD}" > /dev/null
}

upload_coveralls_results() {
Expand Down

0 comments on commit 49a43d5

Please sign in to comment.