Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Feb 13, 2017
2 parents 71366fc + c63a14d commit aad6ddc
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ project/plugins/project/
.classpath
.project
.settings/
target/
local.sbt
1 change: 1 addition & 0 deletions .scalaVersion.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scalaVersion := "2.11.6"
1 change: 1 addition & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maxColumn = 120
37 changes: 30 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
language: scala
sudo: false

addons:
apt:
packages:
- graphviz

scala:
- 2.10.6
- 2.11.8
- 2.12.1
language: scala

jdk:
- oraclejdk7
- openjdk7
- oraclejdk8

before_cache:
- find $HOME/.sbt -name '*.lock' -delete
- find $HOME/.ivy2 -name 'ivydata-*.properties' -delete

cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/

script:
- sbt +test

before_deploy:

deploy:
skip_cleanup: true
provider: script
script: sbt "release with-defaults"
on:
condition: -e ./deploy.sbt
all_branches: true
16 changes: 16 additions & 0 deletions deploy.sbt.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
enablePlugins(Travis)

enablePlugins(SonatypeRelease)

lazy val secret = project settings(publishArtifact := false) configure { secret =>
sys.env.get("GITHUB_PERSONAL_ACCESS_TOKEN") match {
case Some(pat) =>
import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider
secret.addSbtFilesFromGit(
"https://github.com/ThoughtWorksInc/tw-data-china-continuous-delivery-password.git",
new UsernamePasswordCredentialsProvider(pat, ""),
file("secret.sbt"))
case None =>
secret
}
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.7
sbt.version=0.13.13
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "latest.release")

0 comments on commit aad6ddc

Please sign in to comment.