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 #626
  • Loading branch information
theseion authored and fniephaus committed Feb 12, 2024
1 parent 4839b1f commit 6995813
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 > /dev/null
}

upload_coveralls_results() {
Expand Down

0 comments on commit 6995813

Please sign in to comment.