Moved secrets check to before running coverage (#1501)

This commit is contained in:
David Holdeman 2020-06-16 15:55:18 -07:00 committed by GitHub
parent 5a90d73ec0
commit 96e9ab5712
1 changed files with 6 additions and 6 deletions

View File

@ -5,6 +5,11 @@
# this scripts replaces run_gcov.sh
#
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
echo "No Secrets"
exit 0
fi
rm -rf gcov_working_area
mkdir gcov_working_area
@ -31,10 +36,5 @@ echo -e "\nGenerating HTML"
genhtml coverage.info --output-directory gcov
echo -e "\nUploading HTML"
if [ $1 ] && [ $2 ] && [ $3 ]; then
ncftpput -m -R -v -u "$1" -p "$2" "$3" /unit_tests_coverage gcov/*
else
echo "Error: FTP server details seem to be missing"
exit 1
fi
ncftpput -m -R -v -u "$1" -p "$2" "$3" /unit_tests_coverage gcov/*