Skip to content

Commit 45154e0

Browse files
committed
further sbt-ci-release setup
1 parent 8fd9e2a commit 45154e0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: .travis.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ language: scala
55
env:
66
- ADOPTOPENJDK=8
77

8-
script:
9-
- sbt test
8+
before_install:
9+
- git fetch --tags
10+
11+
stages:
12+
- name: test
13+
- name: release
14+
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
15+
16+
jobs:
17+
include:
18+
- stage: test
19+
name: test
20+
script: sbt test
21+
- stage: release
22+
script: sbt ci-release
1023

1124
notifications:
1225
email:

Diff for: build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ enablePlugins(SbtPlugin)
22

33
name := "sbt-scala-module"
44
organization := "org.scala-lang.modules"
5+
homepage := Some(url("https://github.com/scala/sbt-scala-module"))
56
licenses := Seq(("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
67

78
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.6")

0 commit comments

Comments
 (0)