mirror of
https://github.com/correl/elm.git
synced 2024-12-18 11:06:17 +00:00
Exit build.sh with an error if one of the exercise examples fails the test run
This commit is contained in:
parent
153caf22f2
commit
791b4ab6c7
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,12 @@ do
|
|||
echo '-------------------------------------------------------'
|
||||
echo "Testing $exercise"
|
||||
elm-test $exercise_dir/*Tests.elm
|
||||
TEST_RESULT=$?
|
||||
mv "$exercise_dir/$exercise.elm" "$exercise_dir/$exercise.example"
|
||||
mv "$exercise_dir/$exercise.impl" "$exercise_dir/$exercise.elm"
|
||||
|
||||
if [ $TEST_RESULT -ne 0 ]; then
|
||||
echo "$exercise failed";
|
||||
exit $TEST_RESULT;
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"./exercises/hello_world",
|
||||
"./exercises/hello-world",
|
||||
"./exercises/leap",
|
||||
"./exercises/bob"
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue