fix(build): manage refs for push events

This commit is contained in:
Arthur Meyre
2021-08-17 18:09:35 +02:00
parent 788e94bfa3
commit 6d14b4b318
2 changed files with 8 additions and 3 deletions

View File

@@ -6,7 +6,12 @@ set +e
CURR_DIR=`dirname $0`
# Run diff-coverage
BB="origin/$1" make coverage | tee diff-coverage.txt
if [[ "$1" == "" ]]; then
BB="origin/main"
else
BB="origin/$1"
fi
make coverage | tee diff-coverage.txt
# Get exit code without closing the script
TEST_EXIT_CODE="$?"