You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bootstrap: configurable starr, skip docs on first module build
A few small improvements I accumulated in while using this script
to bootstrap the removal of trait implementation classes.
- Allow an extra step to build STARR from a prior commit
- Skip Scaladoc in the module builds first round
- Speed up the step that cleans the remote repo by skipping the
numerous "scala-actors-migration" directories.
I've been using this successully as follows:
(ant all.clean; mkdir ivy2-shadow; export STARR_REF=$(git rev-parse :/"Nuke trait implementation"); export WORKSPACE=$PWD; bash -ex ./scripts/jobs/integrate/bootstrap)
publishStarrPrivateTask=${publishStarrPrivateTask-$publishPrivateTask}# set to "init" to speed up testing of the script (if you already built STARR before)
90
91
publishLockerPrivateTask=${publishLockerPrivateTask-$publishPrivateTask}# set to "init" to speed up testing of the script (if you already built locker before)
91
92
92
93
forceRebuild=${forceRebuild-no}
@@ -208,12 +209,17 @@ sbtResolve() {
208
209
# scala-xml depends on scala-library, so sbt tries to find the scala-library of the version that we are currently building,
209
210
# which exists only in private-repo.
210
211
212
+
docTask() {
213
+
if [ "$1"=="yes" ];thenecho doc;elseechoset publishArtifact in packageDoc in Compile := false;fi
sbtBuild 'set version := "'$SCALACHECK_VER'"''set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"'$clean publish # test times out NOTE: never published to sonatype
266
+
doc="$(docTask $SCALACHECK_BUILT)"
267
+
sbtBuild 'set version := "'$SCALACHECK_VER'"''set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"'$clean"$doc" publish # test times out NOTE: never published to sonatype
258
268
SCALACHECK_BUILT="yes"
259
269
fi
260
270
}
@@ -426,7 +436,7 @@ removeExistingBuilds() {
426
436
local netrcFile="$HOME/.credentials-private-repo-netrc"
427
437
428
438
local storageApiUrl=`echo $releaseTempRepoUrl| sed 's/\(scala-release-temp\)/api\/storage\/\1/'`
0 commit comments