aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-04-08 20:54:04 -0700
committerJakob Odersky <jakob@odersky.com>2018-04-08 20:55:03 -0700
commite03a7c99513718393962e1097c59d95dc02e23bb (patch)
treee87ffb76a1c6937f6b5f40b342444f5bb61150f7
parenta0075622fd304283181fae3914450faa0d0e2923 (diff)
downloadyamlesque-e03a7c99513718393962e1097c59d95dc02e23bb.tar.gz
yamlesque-e03a7c99513718393962e1097c59d95dc02e23bb.tar.bz2
yamlesque-e03a7c99513718393962e1097c59d95dc02e23bb.zip
Add publishing information and enable travis build
-rw-r--r--.travis.yml17
-rw-r--r--publish.sbt25
2 files changed, 42 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..dedcf9b
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,17 @@
+language: scala
+
+jdk:
+ - oraclejdk8
+
+script:
+ - sbt scalafmtCheck +test
+
+cache:
+ directories:
+ - "$HOME/.ivy2/cache"
+ - "$HOME/.sbt/boot/"
+
+before_cache:
+ - find $HOME/.ivy2/cache/io.crashbox -depth -name "yamlesque*" -exec rm -r {} \;
+ - find $HOME/.ivy2 -name "ivydata-*.properties" -delete
+ - find $HOME/.sbt -name "*.lock" -delete
diff --git a/publish.sbt b/publish.sbt
new file mode 100644
index 0000000..04e6ba1
--- /dev/null
+++ b/publish.sbt
@@ -0,0 +1,25 @@
+organization in ThisBuild := "io.crashbox"
+licenses in ThisBuild := Seq(
+ ("Apache 2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
+homepage in ThisBuild := Some(url("https://github.com/jodersky/yamlesque"))
+publishMavenStyle in ThisBuild := true
+publishTo := Some(
+ if (isSnapshot.value)
+ Opts.resolver.sonatypeSnapshots
+ else
+ Opts.resolver.sonatypeStaging
+)
+scmInfo := Some(
+ ScmInfo(
+ url("https://github.com/jodersky/yamlesque"),
+ "scm:git@github.com:jodersky/yamlesque.git"
+ )
+)
+developers := List(
+ Developer(
+ id = "jodersky",
+ name = "Jakob Odersky",
+ email = "jakob@odersky.com",
+ url = url("https://crashbox.io")
+ )
+)