aboutsummaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-02-14 12:17:15 -0800
committerJakob Odersky <jakob@odersky.com>2018-02-14 12:17:15 -0800
commiteada4c48b3954241e130f5d9b5e7feebe8c1e3f2 (patch)
treed017b30fb264b0560cbf7df3540f26e705da8ec0 /.ci
parentaf6845cc08ae223ad67ebad61559d8264fd3346b (diff)
downloadspray-json-derivation-eada4c48b3954241e130f5d9b5e7feebe8c1e3f2.tar.gz
spray-json-derivation-eada4c48b3954241e130f5d9b5e7feebe8c1e3f2.tar.bz2
spray-json-derivation-eada4c48b3954241e130f5d9b5e7feebe8c1e3f2.zip
Prepare for releasing
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/build27
-rw-r--r--.ci/sec.gpg.encbin0 -> 2480 bytes
2 files changed, 27 insertions, 0 deletions
diff --git a/.ci/build b/.ci/build
new file mode 100755
index 0000000..2d42ac6
--- /dev/null
+++ b/.ci/build
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -ev
+
+sbt scalafmtTest +test
+
+# Automatic publishing for tags that start with `v<digit>`
+if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then
+ # Setup gpg keys
+ gpg --keyserver keyserver.ubuntu.com --recv-key "DC7751D77486D755815C04AB488F99C904F077E8"
+ openssl aes-256-cbc -K "$encrypted_c6e2aee6c53f_key" -iv "$encrypted_c6e2aee6c53f_iv" -in .ci/sec.gpg.enc -out sec.gpg -d
+ gpg --import sec.gpg
+
+ # Set up publishing settings and credentials
+ cat <<EOF > credentials.sbt
+ useGpg := true
+ pgpSigningKey := Some(0x488F99C904F077E8l)
+ credentials += Credentials(
+ "Sonatype Nexus Repository Manager",
+ "oss.sonatype.org",
+ "vZKBpUCV",
+ "$SONATYPE_PASS"
+ )
+EOF
+
+ # Publish and release
+ sbt +publishSigned sonatypeRelease
+fi
diff --git a/.ci/sec.gpg.enc b/.ci/sec.gpg.enc
new file mode 100644
index 0000000..cd30d2f
--- /dev/null
+++ b/.ci/sec.gpg.enc
Binary files differ