diff --git a/.larabot.conf b/.larabot.conf index 918de8d56..d6935700c 100644 --- a/.larabot.conf +++ b/.larabot.conf @@ -8,8 +8,7 @@ nightly { "sbt universal:stage" "sbt -batch -Dtestsuite-parallelism=5 test" "sbt -batch -Dtestsuite-parallelism=3 -Dtestcase-parallelism=5 it:test" - "bash bin/external-tests.sh --only-scalac" - "bash bin/external-tests.sh --only-dotty" + "bash bin/external-tests.sh" "sbt -batch scripted" "bash bin/build-slc-lib.sh" ] diff --git a/bin/bolts-tests.sh b/bin/bolts-tests.sh index 6c2c9171f..b95da99c8 100755 --- a/bin/bolts-tests.sh +++ b/bin/bolts-tests.sh @@ -3,7 +3,6 @@ set -e TEST_DIR=$1 -FRONTEND=$2 echo "Moving to $TEST_DIR" mkdir -p "$TEST_DIR" cd "$TEST_DIR" || exit 1 @@ -16,6 +15,6 @@ else cd bolts || exit 1 fi -bash ./run-tests.sh "$FRONTEND" +bash ./run-tests.sh stainless-dotty cd ../.. || true diff --git a/bin/external-tests.sh b/bin/external-tests.sh index cdf1d3961..79e73b535 100755 --- a/bin/external-tests.sh +++ b/bin/external-tests.sh @@ -84,14 +84,10 @@ Usage: external-tests.sh [options] -h | -help Print this message --skip-build Do not build Stainless (saves time if the build is already up-to-date). - --only-scalac Run the tests for the Scalac frontend only. - --only-dotty Run the tests for the Dotty frontend only. EOM } SKIP_BUILD=false -ONLY_SCALAC=false -ONLY_DOTTY=false while [[ $# -gt 0 ]]; do key="$1" @@ -104,14 +100,6 @@ while [[ $# -gt 0 ]]; do SKIP_BUILD=true shift # past argument ;; - --only-scalac) - ONLY_SCALAC=true - shift # past argument - ;; - --only-dotty) - ONLY_DOTTY=true - shift # past argument - ;; *) # unknown option usage exit 1 @@ -141,7 +129,7 @@ if [[ "$SKIP_BUILD" = false ]]; then echo "Publishing Stainless..." - STAINLESS_VERSION=$(sbt publishLocal | $SED -n -r 's#^.*stainless-scalac-plugin_2.12.13/([^/]+)/poms.*$#\1#p' | head -n1) + STAINLESS_VERSION=$(sbt publishLocal | $SED -n -r 's#^.*stainless-dotty-plugin_3.3.3/([^/]+)/poms.*$#\1#p' | head -n1) echo "Published Stainless version is: $STAINLESS_VERSION" else @@ -158,11 +146,5 @@ mkdir -p "$TEST_DIR" # Stainless Actors are currently disabled: https://github.com/epfl-lara/stainless/issues/970 # "$BIN_DIR/stainless-actors-tests.sh" "$TEST_DIR" "$STAINLESS_VERSION" -if [[ "$ONLY_DOTTY" = false ]]; then - echo "Running bolts test for scalac" - "$BIN_DIR/bolts-tests.sh" "$TEST_DIR" "stainless-scalac" -fi -if [[ "$ONLY_SCALAC" = false ]]; then - echo "Running bolts test for dotty" - "$BIN_DIR/bolts-tests.sh" "$TEST_DIR" "stainless-dotty" -fi \ No newline at end of file +echo "Running bolts test" +"$BIN_DIR/bolts-tests.sh" "$TEST_DIR" "stainless-dotty" \ No newline at end of file diff --git a/bin/package-sbt-plugin.sh b/bin/package-sbt-plugin.sh index 2c7438d14..5f1beeb94 100755 --- a/bin/package-sbt-plugin.sh +++ b/bin/package-sbt-plugin.sh @@ -8,6 +8,7 @@ fi SCALA_VERSION="3.3.3" SCALA_LIB_VERSION="3.3.3" +PUBLISHED_SBT_PLUGIN_DIR="$HOME/.ivy2/local/ch.epfl.lara/sbt-stainless/scala_2.12/sbt_1.0/$STAINLESS_VERSION" LIB_SCALA_VERSION_JAR_NAME_PART=$(echo $SCALA_LIB_VERSION | cut -d '.' -f 1) PUBLISHED_LIB_DIR="$HOME/.ivy2/local/ch.epfl.lara/stainless-library_$LIB_SCALA_VERSION_JAR_NAME_PART/$STAINLESS_VERSION" PUBLISHED_DOTTY_DIR="$HOME/.ivy2/local/ch.epfl.lara/stainless-dotty-plugin_$SCALA_VERSION/$STAINLESS_VERSION" @@ -39,6 +40,9 @@ info "$(tput bold)[] Locally publishing artifacts..." sbt publishLocal >> $LOG 2>&1 && okay || fail info "$(tput bold)[] Preparing SBT plugin jar..." +OUT_SBT_JAR_DIR="$OUTPUT/project/lib" +mkdir -p "$OUT_SBT_JAR_DIR" +cp "$PUBLISHED_SBT_PLUGIN_DIR/jars/sbt-stainless.jar" "$OUT_SBT_JAR_DIR/sbt-stainless.jar" OUT_DOTTY_DIR="$OUTPUT/stainless/ch/epfl/lara/stainless-dotty-plugin_$SCALA_VERSION/$STAINLESS_VERSION" mkdir -p "$OUT_DOTTY_DIR" cp "$PUBLISHED_DOTTY_DIR/jars/stainless-dotty-plugin_$SCALA_VERSION.jar" "$OUT_DOTTY_DIR/stainless-dotty-plugin_$SCALA_VERSION-$STAINLESS_VERSION.jar"