diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-04-04 23:31:15 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-04-17 20:20:27 -0700 |
commit | 93dad7c4b7f744e104dc32c4af7e454468881f7c (patch) | |
tree | 1e2e3e25b908ba7589f9bce7aac6f8b4dc045d77 | |
parent | 28931c74ae9da49ffe88f6b5df90c3a70cc6814a (diff) | |
download | magnolia-0.7.1-1.tar.gz magnolia-0.7.1-1.tar.bz2 magnolia-0.7.1-1.zip |
Fork: update organization and version settingsv0.7.1-1
-rwxr-xr-x | .ci/build | 43 | ||||
-rw-r--r-- | .ci/sec.gpg.enc | bin | 0 -> 3616 bytes | |||
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | build.sbt | 7 | ||||
-rw-r--r-- | build.sh.enc | bin | 0 -> 400 bytes | |||
-rw-r--r-- | project/plugins.sbt | 4 |
6 files changed, 56 insertions, 6 deletions
diff --git a/.ci/build b/.ci/build new file mode 100755 index 0000000..8ec9185 --- /dev/null +++ b/.ci/build @@ -0,0 +1,43 @@ +#!/bin/bash +set -o errexit +set -o nounset +set -o verbose + +sbt +compile +tests/run + +# 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-keys \ + "DC6A9A5E884B2D680E080467E107A4A6CF561C67" + openssl aes-256-cbc \ + -K "$encrypted_c8feacd00769_key" \ + -iv "$encrypted_c8feacd00769_iv" \ + -in .ci/sec.gpg.enc \ + -out sec.gpg \ + -d + gpg --import sec.gpg + + # Setup sbt-pgp plugin + cat <<-EOF > gpg.sbt + pgpSigningKey in Global := Some(0xE107A4A6CF561C67l) + useGpgAgent in Global := true + useGpg in Global := true + EOF + + # Setup publishing + cat <<-EOF > sonatype.sbt + credentials in Global += Credentials( + "Sonatype Nexus Repository Manager", + "oss.sonatype.org", + "8VNUX6+2", + "$SONATYPE_PASS" + ) + EOF + + sbt \ + +coreJVM/publishSigned \ + +coreJS/publishSigned \ + +coreNative/publishSigned \ + sonatypeRelease +fi diff --git a/.ci/sec.gpg.enc b/.ci/sec.gpg.enc Binary files differnew file mode 100644 index 0000000..ded18e1 --- /dev/null +++ b/.ci/sec.gpg.enc diff --git a/.travis.yml b/.travis.yml index 5575c91..db5a858 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,12 @@ language: scala before_install: - curl https://raw.githubusercontent.com/scala-native/scala-native/9069e8d447f7a9a5439bffbb6a706b5cc70bd631/bin/travis_setup.sh | bash -x + +env: + global: + secure: "g/iUUMHR5Dnhkr4s1yJCzq4026MdsKFtRq/40sffldNP7HvYKCjf1t8y+3qtNuGaOOIV+n8z0t0kDVszEOv7JTXe9o0lnvzyM7qpdhh9TticEKc/woNB20rWtQXVla1oYr+iYqs9ygTrFrcgAzFSUjlIvrKPlw4yXb06swKFJ15w9j9ol81iVChKAruzBz4ZtoT6I2b8iatRBDXDG/SZqiT3YleIqvDpHMLNbbwk1ru68GjGpjbAxECX5mCXfC0W0k+WweDGDlHpYvMCMCjmvU6auUPMUknBnJYSzuagv2LxNMHb8zaVrff+s0vKnnF4diG7xiM8qcHBEgoyGZ0o0oQs2X/S4cgqxAON2pOzGctHt3yKRkmYtakGkNge223Sdj4nB0v70Rpzs/hSbzebbSM4GtfGoCF26wj7nrm/bxvc41bSg1v3kvOJNWUiWBBQ7VWEQuzbKASOFu7cQzZWWjikZzMRxTBWIanzfHRbeWjuInL4YxWTMoFmUc4ELCgClqyQmWS9Xz2vJqzbkyy9qX3daY4hxB49HPw1hRn25vAXWATEBdSWONGPCquNsDs+P8w+vo7BnqSeXx5maaqXbjp7xZKP/5RHhL4TlWPDzlQgh+hKLe4rkLcqs5nLksQ2ybppGhX4JiT0pmesH94qj2u7tQL2NGOZpXCfXRDDHoM=" -script: - - sbt +compile +tests/run +script: .ci/build + jdk: - oraclejdk8 @@ -79,9 +79,12 @@ lazy val benchmarks = project .dependsOn(examplesJVM) lazy val buildSettings = Seq( - organization := "com.propensive", + organization in ThisBuild := "io.crashbox", name := "magnolia", - version := "0.7.2-SNAPSHOT", + version in ThisBuild := { + import sys.process._ + ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim + }, scalacOptions ++= Seq( "-deprecation", "-feature", diff --git a/build.sh.enc b/build.sh.enc Binary files differnew file mode 100644 index 0000000..9e97562 --- /dev/null +++ b/build.sh.enc diff --git a/project/plugins.sbt b/project/plugins.sbt index 4db006e..8834ad6 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,8 +1,8 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.1") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.22") addSbtPlugin("org.portable-scala" % "sbt-crossproject" % "0.3.1") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.3.1") -addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.6")
\ No newline at end of file +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.6") |