summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-10-13 15:03:49 -0700
committerAdriaan Moors <adriaan@lightbend.com>2016-10-13 15:46:16 -0700
commit6114b7c7f96a68bf950999551a8b6d40c7ea37cc (patch)
treee75cea28978f6c1d4480997b8891cbd260b81ba9 /scripts
parent2164eb7f95e33f51533e91c04546d75dcfd51443 (diff)
downloadscala-6114b7c7f96a68bf950999551a8b6d40c7ea37cc.tar.gz
scala-6114b7c7f96a68bf950999551a8b6d40c7ea37cc.tar.bz2
scala-6114b7c7f96a68bf950999551a8b6d40c7ea37cc.zip
Make stability test optional.
To allow building a dist for the community build in under 20 mins.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/jobs/integrate/bootstrap18
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/jobs/integrate/bootstrap b/scripts/jobs/integrate/bootstrap
index 30bcf01b6a..5340bda0e1 100755
--- a/scripts/jobs/integrate/bootstrap
+++ b/scripts/jobs/integrate/bootstrap
@@ -91,6 +91,8 @@ publishSonatypeTaskModules=${publishSonatypeTaskModules-"publishSigned"}
forceRebuild=${forceRebuild-no}
sbtBuildTask=${sbtBuildTask-"testAll"} # TESTING leave empty to avoid the sanity check
+testStability=${testStability-yes}
+
clean="clean" # TESTING leave empty to speed up testing
baseDir=${WORKSPACE-`pwd`}
@@ -529,6 +531,15 @@ bootstrap() {
# clear ivy cache (and to be sure, local as well), so the next round of sbt builds sees the fresh scala
rm -rf $baseDir/ivy2
+ # TODO: create PR with following commit (note that release will have been tagged already)
+ # git commit versions.properties -m"Bump versions.properties for $SCALA_VER."
+}
+
+testStability() {
+ echo "### Testing stability"
+
+ cd $baseDir
+
# Run stability tests using the just built version as "quick" and a new version as "strap"
mv build/quick quick1
rm -rf build/
@@ -542,9 +553,6 @@ bootstrap() {
mv build/quick build/strap
mv quick1 build/quick
$scriptsDir/stability-test.sh
-
- # TODO: create PR with following commit (note that release will have been tagged already)
- # git commit versions.properties -m"Bump versions.properties for $SCALA_VER."
}
# assumes we just bootstrapped, and current directory is $baseDir
@@ -591,6 +599,10 @@ removeExistingBuilds
bootstrap
+if [ "$testStability" == "yes" ]
+ then testStability
+fi
+
if [ "$publishToSonatype" == "yes" ]
then publishSonatype
fi