diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 21:30:19 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-04 21:41:48 -0800 |
commit | 61f3776e0967fc1f8b29eb4ea8adaaf29ee99617 (patch) | |
tree | 9075bdd4e5946ffb874fd2622f66457161feb6a2 | |
parent | 00d0f979e2facd2c5d12d06dd2dc70c0b14c3c1f (diff) | |
download | mill-61f3776e0967fc1f8b29eb4ea8adaaf29ee99617.tar.gz mill-61f3776e0967fc1f8b29eb4ea8adaaf29ee99617.tar.bz2 mill-61f3776e0967fc1f8b29eb4ea8adaaf29ee99617.zip |
wip getting release.sh working0.0.2
-rw-r--r-- | .travis.yml | 16 | ||||
-rwxr-xr-x | build.sc | 30 | ||||
-rwxr-xr-x | ci/release.sh | 2 |
3 files changed, 23 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml index da939589..a00810fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,14 +10,14 @@ jdk: matrix: include: - - stage: build - env: CI_SCRIPT=ci/test-sbt.sh - - stage: build - env: CI_SCRIPT=ci/test-sbt-built.sh - - stage: build - env: CI_SCRIPT=ci/test-mill-built.sh - - stage: build - env: CI_SCRIPT=ci/test-mill-release.sh +# - stage: build +# env: CI_SCRIPT=ci/test-sbt.sh +# - stage: build +# env: CI_SCRIPT=ci/test-sbt-built.sh +# - stage: build +# env: CI_SCRIPT=ci/test-mill-built.sh +# - stage: build +# env: CI_SCRIPT=ci/test-mill-release.sh - stage: release env: CI_SCRIPT=ci/release.sh @@ -247,10 +247,10 @@ def releaseCI(githubAuthKey: String, sonatypeCreds: String, gpgPassphrase: String, gpgPrivateKey: String) = - if (isMasterCommit) T.command() + if (!isMasterCommit) T.command() else { write(home / "gpg.key", java.util.Base64.getDecoder.decode(gpgPrivateKey)) - %('gpg, 'import, home / "gpg.key")(pwd) + %('gpg, "--import", home / "gpg.key")(pwd) T.command{ releaseManual(githubAuthKey, sonatypeCreds, gpgPassphrase)() } @@ -259,18 +259,16 @@ def releaseCI(githubAuthKey: String, def releaseManual(githubAuthKey: String, sonatypeCreds: String, - gpgPassphrase: String) = - if (isMasterCommit) T.command() - else T.command{ - moduledefs.publish(sonatypeCreds, gpgPassphrase)() - core.publish(sonatypeCreds, gpgPassphrase)() - scalalib.publish(sonatypeCreds, gpgPassphrase)() - scalajslib.publish(sonatypeCreds, gpgPassphrase)() - scalaworker.publish(sonatypeCreds, gpgPassphrase)() - scalajslib.jsbridges("0.6").publish(sonatypeCreds, gpgPassphrase)() - scalajslib.jsbridges("1.0").publish(sonatypeCreds, gpgPassphrase)() - val (release, label) = publishVersion() - uploadToGithub(releaseAssembly().path, githubAuthKey, release, label) - () - } + gpgPassphrase: String) = T.command{ + moduledefs.publish(sonatypeCreds, gpgPassphrase)() + core.publish(sonatypeCreds, gpgPassphrase)() + scalalib.publish(sonatypeCreds, gpgPassphrase)() + scalajslib.publish(sonatypeCreds, gpgPassphrase)() + scalaworker.publish(sonatypeCreds, gpgPassphrase)() + scalajslib.jsbridges("0.6").publish(sonatypeCreds, gpgPassphrase)() + scalajslib.jsbridges("1.0").publish(sonatypeCreds, gpgPassphrase)() + val (release, label) = publishVersion() + uploadToGithub(releaseAssembly().path, githubAuthKey, release, label) + () +} diff --git a/ci/release.sh b/ci/release.sh index 18bfc399..e9ff8302 100755 --- a/ci/release.sh +++ b/ci/release.sh @@ -2,7 +2,7 @@ set -eux - +sbt bin/test:assembly target/bin/mill releaseCI \ $GITHUB_ACCESS_TOKEN \ |