summaryrefslogtreecommitdiff
path: root/scripts/jobs
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2015-04-30 15:29:15 -0700
committerLukas Rytz <lukas.rytz@gmail.com>2015-05-06 09:29:21 +0200
commit9e1520af6e861b6e3e6a51c41ca053717a250953 (patch)
tree6e93179644fe593c9a5da0008b90b073685b336f /scripts/jobs
parent2f45c88d14b8717bc45d5061b2a3c20f5afecda0 (diff)
downloadscala-9e1520af6e861b6e3e6a51c41ca053717a250953.tar.gz
scala-9e1520af6e861b6e3e6a51c41ca053717a250953.tar.bz2
scala-9e1520af6e861b6e3e6a51c41ca053717a250953.zip
[backport] Revert back to Scalacheck 1.11.x, fixes to bootstrap script
Scalacheck 1.12.x cross-compiles to JS and will take more work to integrate. Make sure we never attempt to publish scalacheck to sonatype. Force checkout module refs in case of dirty workspace. Backport of f238586d1b9d93533ee9507b56a26a97c2b2501c
Diffstat (limited to 'scripts/jobs')
-rwxr-xr-xscripts/jobs/integrate/bootstrap32
1 files changed, 18 insertions, 14 deletions
diff --git a/scripts/jobs/integrate/bootstrap b/scripts/jobs/integrate/bootstrap
index 6f104d79d4..2ffab7983c 100755
--- a/scripts/jobs/integrate/bootstrap
+++ b/scripts/jobs/integrate/bootstrap
@@ -141,7 +141,7 @@ update() {
cd $2
git fetch --tags "https://github.com/$1/$2.git"
- (git fetch "https://github.com/$1/$2.git" $3 && git checkout -q FETCH_HEAD) #|| git checkout -q $3 # || fallback is for local testing on tag
+ (git fetch "https://github.com/$1/$2.git" $3 && git checkout -fq FETCH_HEAD) #|| git checkout -fq $3 # || fallback is for local testing on tag
git reset --hard
}
@@ -291,18 +291,21 @@ buildActorsMigration(){
fi
}
+# should only be called with publishTasks publishing to private-repo
buildScalacheck(){
if [ "$SCALACHECK_BUILT" != "yes" ] && [ "$forceRebuild" != "yes" ] && ( sbtResolve "org.scalacheck" "scalacheck" $SCALACHECK_VER )
then echo "Found scalacheck $SCALACHECK_VER; not building."
else
update rickynils scalacheck $SCALACHECK_REF && gfxd
- sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean $publishPrivateTask # test times out NOTE: never published to sonatype
+ sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean publish # test times out NOTE: never published to sonatype
SCALACHECK_BUILT="yes"
fi
}
# build modules, using ${buildTasks[@]} (except for Scalacheck, which is hard-coded to publish to private-repo)
buildModules() {
+ publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
+ buildTasks=($publishPrivateTask)
buildXML
buildParsers
buildContinuations
@@ -313,6 +316,18 @@ buildModules() {
# buildPartestIface
}
+buildPublishedModules() {
+ publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
+ buildTasks=($publishSonatypeTaskModules)
+ buildXML
+ buildParsers
+ buildContinuations
+ buildSwing
+ buildActorsMigration
+ buildPartest
+ # buildPartestIface
+}
+
## BUILD STEPS:
@@ -515,8 +530,6 @@ bootstrap() {
# publish to our internal repo (so we can resolve the modules in the scala build below)
# we only need to build the modules necessary to build Scala itself
# since the version of locker and quick are the same
- publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
- buildTasks=($publishPrivateTask)
buildModules
constructUpdatedModuleVersions
@@ -573,9 +586,7 @@ publishSonatype() {
# (was hoping we could make everything go to the same staging repo, but it's not timing that causes two staging repos to be opened)
# NOTE: only publish those for which versions are set
# test and publish to sonatype, assuming you have ~/.sbt/0.13/sonatype.sbt and ~/.sbt/0.13/plugin/gpg.sbt
- publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
- buildTasks=($publishSonatypeTaskModules)
- buildModules
+ buildPublishedModules
open=$(st_stagingReposOpen)
allOpenUrls=$(echo $open | jq '.repositoryURI' | tr -d \")
@@ -599,11 +610,4 @@ bootstrap
if [ "$publishToSonatype" == "yes" ]
then publishSonatype
- else # build modules one more time, just to mimic the regular build as much when running as nightly
- echo "### Rebuilding modules with quick, publishing to $baseDir/ivy/local"
- buildTasks=(publish-local)
- # buildScalacheck always uses publishPrivateTask (not buildTasks). we override it to avoid publishing to private-repo.
- publishPrivateTask="publish-local"
- forceRebuild="yes"
- buildModules
fi