diff --git a/bin/build.sh b/bin/build.sh index 3ec5410..5bea25b 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -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 diff --git a/elm-package.json b/elm-package.json index 7d7ab00..47757a4 100644 --- a/elm-package.json +++ b/elm-package.json @@ -5,7 +5,7 @@ "license": "BSD3", "source-directories": [ ".", - "./exercises/hello_world", + "./exercises/hello-world", "./exercises/leap", "./exercises/bob" ],