Skip to content

Commit

Permalink
Set up sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Sep 27, 2018
1 parent 749c69d commit 8deeb54
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.6
- 2.13.0-M5
jdk:
- oraclejdk8
before_install:
- git fetch --tags
script:
- sbt ++$TRAVIS_SCALA_VERSION "testOnly -- --truncate=999999"
# Tricks to avoid unnecessary cache updates, from
# http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
sudo: false

stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- scala: 2.10.7
- scala: 2.11.12
- scala: 2.12.6
- scala: 2.13.0-M5
- stage: release
script: sbt ci-release
# These directories are cached to S3 at the end of the build
cache:
directories:
Expand Down
31 changes: 11 additions & 20 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
organization := "com.lihaoyi"

name := "acyclic"

version := "0.1.8"
inThisBuild(List(
organization := "com.lihaoyi",
homepage := Some(url("https://github.com/lihaoyi/acyclic")),
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.html")),
developers += Developer(
email = "[email protected]",
id = "lihaoyi",
name = "Li Haoyi",
url = url("https://github.com/lihaoyi")
)
))

scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.6", "2.13.0-M5")
Expand Down Expand Up @@ -31,21 +40,3 @@ unmanagedSourceDirectories in Test += baseDirectory.value / "src" / "test" / "re

// Sonatype
publishArtifact in Test := false

publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")

scmInfo := Some(ScmInfo(
browseUrl = url("https://github.com/lihaoyi/acyclic"),
connection = "scm:git:[email protected]:lihaoyi/acyclic.git"
))

licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.html"))

homepage := Some(url("https://github.com/lihaoyi/acyclic"))

developers += Developer(
email = "[email protected]",
id = "lihaoyi",
name = "Li Haoyi",
url = url("https://github.com/lihaoyi")
)
1 change: 1 addition & 0 deletions project/build.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")

0 comments on commit 8deeb54

Please sign in to comment.