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
Switch Windows CI build to sbt (w/ some sbt build improvements)
- Use sbt in `integrate/windows`: This essentially combines the Unix CI
jobs `validate/publish-core` and `validate/test`, first publishing a
local release built with STARR and then building a new version with
that and running all tests on it.
- Unify repository handling across build scripts: A new function
`generateRepositoriesConfig` in `common`, based on the existing code
in `integrate/bootstrap`, writes the `repositories` file for sbt,
either with or without an extra bootstrap repository for resolving a
previously built version. It is used in all CI scripts to ensure that
artifacts are only resolved through the sanctioned proxies and
upstream repositories.
- The repository URL arguments in `setupPublishCore` and
`setupValidateTest` are now optional as well. These commands are used
without a URL from `integrate/windows`, which publishes to `local`
instead of a temporary remote repository.
- `testAll` is now a task instead of a command. It runs the same
sequence of sub-tasks as before but does not propagate failures
immediately. It always runs all subtasks and reports errors at the
end.
- The `generateBuildCharacterPropertiesFile` task now includes all
properties from `versions.properties` (whose values have potentially
been overwritten with `-D` options) in `buildcharacter.properties`.
// Define a copy of the setting key here in case the plugin is not part of the build
71
74
valpgpPassphrase=SettingKey[Option[Array[Char]]]("pgp-passphrase", "The passphrase associated with the secret used to sign artifacts.", KeyRanks.BSetting)
@@ -95,25 +98,18 @@ object ScriptCommands {
95
98
publishArtifact in (Compile, packageDoc) in ThisBuild:=false
96
99
)
97
100
98
-
private[this] defpublishTarget(url: String) =Seq(
101
+
private[this] defpublishTarget(url: String) ={
99
102
// Append build.timestamp to Artifactory URL to get consistent build numbers (see https://github.com/sbt/sbt/issues/2088):
100
-
publishTo in Global:=Some("scala-pr-publish" at url.replaceAll("/$", "") +";build.timestamp="+System.currentTimeMillis)
publishStarrPrivateTask=${publishStarrPrivateTask-$publishPrivateTask}# set to "init" to speed up testing of the script (if you already built STARR before)
91
-
publishLockerPrivateTask=${publishLockerPrivateTask-$publishPrivateTask}# set to "init" to speed up testing of the script (if you already built locker before)
$SBT -Dstarr.version=$maven_version_number --warn "setupValidateTest" testAll | grep -v "was too long to be displayed in the webview, and will be left out"
0 commit comments