Skip to content

Commit

Permalink
ci: Stop script onto compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Jul 4, 2024
1 parent 3ef0b5e commit 61b158f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

(cd snippets && mvn clean spotless:apply)
(cd snippets && ./compile.sh)
(cd snippets && mvn clean spotless:apply) || exit 1
(cd snippets && ./compile.sh) ||exit 1

6 changes: 1 addition & 5 deletions snippets/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@ echo "Compiling snippets:"
for snippet in $SNIPPETS
do
echo " - Snippet: $snippet"
mvn compile -Dsnippet="$(dirname $snippet)"
if [ $? -ne 0 ]
then
exit $?
fi
mvn compile -Dsnippet="$(dirname $snippet)" || exit 1
done

0 comments on commit 61b158f

Please sign in to comment.