Skip to content

Commit f238586

Browse files
adriaanmlrytz
authored andcommitted
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.
1 parent 00b5adf commit f238586

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

scripts/jobs/integrate/bootstrap

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ update() {
141141
cd $2
142142

143143
git fetch --tags "https://github.com/$1/$2.git"
144-
(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
144+
(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
145145
git reset --hard
146146
}
147147

@@ -258,18 +258,21 @@ buildSwing() {
258258
fi
259259
}
260260

261+
# should only be called with publishTasks publishing to private-repo
261262
buildScalacheck(){
262263
if [ "$SCALACHECK_BUILT" != "yes" ] && [ "$forceRebuild" != "yes" ] && ( sbtResolve "org.scalacheck" "scalacheck" $SCALACHECK_VER )
263264
then echo "Found scalacheck $SCALACHECK_VER; not building."
264265
else
265266
update rickynils scalacheck $SCALACHECK_REF && gfxd
266-
sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean $publishPrivateTask # test times out NOTE: never published to sonatype
267+
sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean publish # test times out NOTE: never published to sonatype
267268
SCALACHECK_BUILT="yes"
268269
fi
269270
}
270271

271272
# build modules, using ${buildTasks[@]} (except for Scalacheck, which is hard-coded to publish to private-repo)
272273
buildModules() {
274+
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
275+
buildTasks=($publishPrivateTask)
273276
buildXML
274277
buildParsers
275278
buildSwing
@@ -278,6 +281,16 @@ buildModules() {
278281
# buildPartestIface
279282
}
280283

284+
buildPublishedModules() {
285+
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
286+
buildTasks=($publishSonatypeTaskModules)
287+
buildXML
288+
buildParsers
289+
buildSwing
290+
buildPartest
291+
# buildPartestIface
292+
}
293+
281294

282295
## BUILD STEPS:
283296

@@ -466,8 +479,6 @@ bootstrap() {
466479
# publish to our internal repo (so we can resolve the modules in the scala build below)
467480
# we only need to build the modules necessary to build Scala itself
468481
# since the version of locker and quick are the same
469-
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
470-
buildTasks=($publishPrivateTask)
471482
buildModules
472483

473484
constructUpdatedModuleVersions
@@ -521,9 +532,7 @@ publishSonatype() {
521532
# (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)
522533
# NOTE: only publish those for which versions are set
523534
# test and publish to sonatype, assuming you have ~/.sbt/0.13/sonatype.sbt and ~/.sbt/0.13/plugin/gpg.sbt
524-
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
525-
buildTasks=($publishSonatypeTaskModules)
526-
buildModules
535+
buildPublishedModules
527536

528537
open=$(st_stagingReposOpen)
529538
allOpenUrls=$(echo $open | jq '.repositoryURI' | tr -d \")
@@ -547,11 +556,4 @@ bootstrap
547556

548557
if [ "$publishToSonatype" == "yes" ]
549558
then publishSonatype
550-
else # build modules one more time, just to mimic the regular build as much when running as nightly
551-
echo "### Rebuilding modules with quick, publishing to $baseDir/ivy/local"
552-
buildTasks=(publish-local)
553-
# buildScalacheck always uses publishPrivateTask (not buildTasks). we override it to avoid publishing to private-repo.
554-
publishPrivateTask="publish-local"
555-
forceRebuild="yes"
556-
buildModules
557559
fi

versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jline.version=2.12.1
2929

3030
# external modules, used internally (not shipped)
3131
partest.version.number=1.0.7
32-
scalacheck.version.number=1.12.2
32+
scalacheck.version.number=1.11.6
3333

3434
# TODO: modularize the compiler
3535
#scala-compiler-doc.version.number=1.0.0-RC1

0 commit comments

Comments
 (0)