Merge pull request #175 from GjjvdBurg/returncode

Make sure build fails when test command fails
This commit is contained in:
Joe Rickerby
2019-11-09 18:41:26 +00:00
committed by GitHub
+4
View File
@@ -117,6 +117,10 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
sh -c {test_command}
popd
)
# exit if tests failed (needed for older bash versions)
if [ $? -ne 0 ]; then
exit 1;
fi
# clean up
rm -rf "$venv_dir"