From b3bbb57e23fc1f7be142d1a703bd4025c453272e Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Mon, 6 Jan 2020 11:16:33 -0500 Subject: [PATCH] Enable dotty in build.sh --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 4603378bc..e4376a00d 100755 --- a/build.sh +++ b/build.sh @@ -14,19 +14,23 @@ set -e # can be released using that new Scala version by creating a new tag containing the Scala version # after a hash, e.g., v1.2.3#2.13.0-M3. -# For normal tags that are cross-built, we release on JDK 8 for Scala 2.x +# For normal tags that are cross-built, we release on JDK 8 for Scala 2.x and Dotty 0.x isReleaseJob() { if [[ "$ADOPTOPENJDK" == "8" && "$TRAVIS_SCALA_VERSION" =~ ^2\.1[234]\..*$ ]]; then true + elif [[ "$ADOPTOPENJDK" == "8" && "$TRAVIS_SCALA_VERSION" =~ ^0\.[0-9]+\..*$ ]]; then + true else false fi } -# For tags that define a Scala version, we pick the jobs of one Scala version (2.13.x) to do the releases +# For tags that define a Scala version, we pick the jobs of a Scala version (2.13.x) or Dotty (0.x) to do the releases isTagScalaReleaseJob() { if [[ "$ADOPTOPENJDK" == "8" && "$TRAVIS_SCALA_VERSION" =~ ^2\.13\.[0-9]+$ ]]; then true + elif [[ "$ADOPTOPENJDK" == "8" && "$TRAVIS_SCALA_VERSION" =~ ^0\.[0-9]+\..*$ ]]; then + true else false fi