Skip to content

Commit

Permalink
Abort script on errors and reduce noise for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 12, 2024
1 parent 18b9111 commit ba3362c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions junit5-jupiter-starter-ant/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e

#
# Set constants.
Expand All @@ -13,15 +14,17 @@ standalone_jar="${ant_folder}/lib/junit-platform-console-standalone-${junit_plat
# Load and extract Apache Ant.
#
if [ ! -d "${ant_folder}" ]; then
curl --remote-name "https://archive.apache.org/dist/ant/binaries/${ant_archive}"
echo "Downloading Ant $ant_version..."
curl --silent --show-error --remote-name "https://archive.apache.org/dist/ant/binaries/${ant_archive}"
tar --extract -z --exclude "${ant_folder}/manual" --file "${ant_archive}"
fi

#
# Load and store junit-platform-console-standalone jar into ${ANT_HOME}/lib.
#
if [ ! -f "${standalone_jar}" ]; then
curl "https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/${junit_platform_version}/junit-platform-console-standalone-${junit_platform_version}.jar" \
echo "Downloading junit-platform-console-standalone $junit_platform_version..."
curl --silent --show-error "https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/${junit_platform_version}/junit-platform-console-standalone-${junit_platform_version}.jar" \
--output "${standalone_jar}"
fi

Expand Down

0 comments on commit ba3362c

Please sign in to comment.