Skip to content

Commit d1d211a

Browse files
committed
Enable automated publishing with sbt-release-early
1 parent b2afb97 commit d1d211a

7 files changed

Lines changed: 37 additions & 43 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Travis secrets
2+
travis/local.*
13

24
# Created by https://www.gitignore.io/api/sbt,vim,java,scala,emacs,ensime,eclipse,intellij+all
35

.travis.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1+
sudo: false
12
language: scala
2-
jdk:
3-
- oraclejdk8
4-
- openjdk8
3+
stages:
4+
- test
5+
- name: deploy
6+
if: (type NOT IN (pull_request)) AND (tag IS present) AND (branch = master)
57

6-
script: sbt clean coverage +test coverageReport
7-
after_success:
8-
- sbt coveralls
8+
script: sbt +test
9+
10+
jobs:
11+
include:
12+
- stage: test
13+
jdk: oraclejdk8
14+
- stage: test
15+
jdk: openjdk8
16+
script: sbt clean coverage +test && sbt coverageReport coveralls
17+
- stage: deploy
18+
jdk: openjdk8
19+
script: |
20+
openssl aes-256-cbc -K $encrypted_edd93504cc75_key -iv $encrypted_edd93504cc75_iv -in travis/secrets.tar.enc -out travis/local.secrets.tar -d &&
21+
tar xv -C travis -f travis/local.secrets.tar &&
22+
sbt +releaseEarly
23+
env:
24+
global:
25+
- secure: oaQO0OktBq1UUw490+zw/bioSFmfkHz9X7sLpoOCT9NzAPwHOXDNIaoYubu+HXbgvSfsId+x4QR2wT1cH+njBMwvImQWrkfWODTAxfSVEuqThWlVKTmfYCoNcbMpFOIQYpSWqx7pb8VeNMr1p2Ql6ov3lNvUpRNvIwxbfUBCYy3mL/H4/1XFDy7emSmgr/I56Pmg6woMi7T7zoEFMozKPQG2rkB3/yU53CtRWMTDU4p3R33bFP5+Q314jkLN/x8E6p83DXSlHw5CNCybrndvBN2Ugylpn5XbINyW78yEc1uDpMDjgQ6/nFldFLBsZ9jVJNOLFHwxEcPCHKS22S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4UkvvLJ7vuCWYQ+82QRzey/LFGCGq4nS545qWyZBZDXHQbBukJZuC+rqilcXRoE05QP42PuWhDJ00f68U5ciE5D5o9S7qGwo2zKFxt7g8pGuebQBb0BYrV9ilAbCF7wVGdWfkjq4h65nPcMJNaXoq7sDcIDXdnKbYBE5KFjglv5coRkyLm+LSyPbPClt+fnCJq6lYFXTqoecWOWMiCQdnCmanWB4Av/AYfuGOt6nIR8WTpHOT/KMkvKv/lNJ2p+mCRe22Th9eKQZvep/XPtwaueYO/c0zpc/dz7XEapXhzdoEGDhLRZfiuy1fXyHuMb4vhLYJBZ3d1t3hN5IkK/1RFWF6PCdoRYnxrMYbMT2uJTA3sVVA8YBQw99OkV9Y/N/SSAkSkJnCuaCeiLPb/OMZlxLY6hs93HbLDBDp935wRL8UZnsLA/bq6/1i7USF4HwI2aZQbhzbbqSXnVbtPvdTQEx4dORWenJraIBl+6LGKA93vimOxi8GkqAbAlgIeUvPH24t4yvHbX+AHCLpHTL7sS6Fl1gc3VLJrzPs21tliNOA3DYjXvNkYZRsdppGXR3nlCuUFlN9hd6pf0WJtYQUrjVPPJ7Nthx2J1y/o5HWAxHpNB9829djuG+nFvXPWJHfYZeNKI=

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# org.combinators.templating
2-
[![Maven Central](https://img.shields.io/maven-central/v/org.combinators/templating.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.combinators%22%20AND%20a%3A%22templating%22)
2+
[![Maven Central](https://img.shields.io/maven-central/v/org.combinators/templating.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.combinators%22%20AND%20%22templating%22)
33
[![build status](https://travis-ci.org/combinators/templating.svg?branch=master)](https://travis-ci.org/combinators/templating)
44
[![Coverage Status](https://coveralls.io/repos/github/combinators/templating/badge.svg?branch=master)](https://coveralls.io/github/combinators/templating?branch=master)
55
[![Join the chat at https://gitter.im/combinators/cls-scala](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/combinators/cls-scala)

build.sbt

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ import sbt.Resolver
33

44
lazy val commonSettings = Seq(
55
organization := "org.combinators",
6-
releaseVersionBump := sbtrelease.Version.Bump.Minor,
7-
releaseIgnoreUntrackedFiles := true,
86

97
scalaVersion := "2.12.4",
108
crossScalaVersions := Seq("2.11.12", scalaVersion.value),
11-
releaseCrossBuild := true,
129

1310
resolvers ++= Seq(
1411
Resolver.sonatypeRepo("releases"),
@@ -32,7 +29,6 @@ lazy val root = (Project(id = "templating", base = file(".")))
3229
.enablePlugins(SbtTwirl)
3330
.settings(
3431
moduleName := "templating",
35-
3632
libraryDependencies ++= Seq(
3733
"org.scalactic" %% "scalactic" % "3.0.4" % "test",
3834
"org.scalatest" %% "scalatest" % "3.0.4" % "test",
@@ -60,39 +56,17 @@ lazy val root = (Project(id = "templating", base = file(".")))
6056

6157

6258
lazy val publishSettings = Seq(
63-
publishMavenStyle := true,
64-
publishArtifact in Test := false,
65-
pomIncludeRepository := { _ => false },
66-
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
67-
publishTo := { version { (v: String) =>
68-
val nexus = "https://oss.sonatype.org/"
69-
if (v.trim.endsWith("SNAPSHOT"))
70-
Some("snapshots" at nexus + "content/repositories/snapshots")
71-
else
72-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
73-
}.value },
7459
homepage := Some(url("https://combinators.org")),
7560
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
7661
scmInfo := Some(ScmInfo(url("https://www.github.com/combinators/templating"), "scm:git:git@github.com:combinators/templating.git")),
77-
pomExtra := (
78-
<developers>
79-
<developer>
80-
<id>JanBessai</id>
81-
<name>Jan Bessai</name>
82-
<url>http://janbessai.github.io/</url>
83-
</developer>
84-
<developer>
85-
<id>BorisDuedder</id>
86-
<name>Boris Düdder</name>
87-
<url>http://duedder.net/</url>
88-
</developer>
89-
<developer>
90-
<id>heineman</id>
91-
<name>George T. Heineman</name>
92-
<url>http://www.cs.wpi.edu/~heineman</url>
93-
</developer>
94-
</developers>
95-
)
62+
developers := List(
63+
Developer("JanBessai", "Jan Bessai", "jan.bessai@tu-dortmund.de", url("http://janbessai.github.io")),
64+
Developer("heineman", "George T. Heineman", "heineman@wpi.edu", url("http://www.cs.wpi.edu/~heineman")),
65+
Developer("BorisDuedder", "Boris Düdder", "boris.d@di.ku.dk", url("http://duedder.net"))
66+
),
67+
68+
pgpPublicRing := file("travis/local.pubring.asc"),
69+
pgpSecretRing := file("travis/local.secring.asc"),
9670
)
9771

9872
lazy val noPublishSettings = Seq(

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
44
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.2")
55
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
66
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.13")
7-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")
7+
addSbtPlugin("ch.epfl.scala" % "sbt-release-early" % "2.0.1")
88
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "4.0.0")

travis/secrets.tar.enc

20 KB
Binary file not shown.

version.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)