diff --git a/play-scala-isolated-slick-example/build.sbt b/play-scala-isolated-slick-example/build.sbt index 3c5ca2df7..532b65cf5 100644 --- a/play-scala-isolated-slick-example/build.sbt +++ b/play-scala-isolated-slick-example/build.sbt @@ -6,7 +6,7 @@ lazy val databaseUrl = sys.env.getOrElse("DB_DEFAULT_URL", "jdbc:h2:./test") lazy val databaseUser = sys.env.getOrElse("DB_DEFAULT_USER", "sa") lazy val databasePassword = sys.env.getOrElse("DB_DEFAULT_PASSWORD", "") -val FlywayVersion = "9.21.2" +val FlywayVersion = "9.21.1" (ThisBuild / version) := "1.1-SNAPSHOT" diff --git a/test.sh b/test.sh index 1e1590541..c0e532721 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,11 @@ #!/usr/bin/env bash + +# -e Exit script immediately if any command returns a non-zero exit status. +# -u Exit script immediately if an undefined variable is used. +# -o pipefail Ensure Bash pipelines return a non-zero status if any of the commands fail, +# rather than returning the exit status of the last command in the pipeline. +set -euo pipefail + if [ -z "$MATRIX_SCALA" ]; then echo "Error: the environment variable MATRIX_SCALA is not set" exit 1