diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..df27b5e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +sudo: false +cache: + directories: + - $HOME/.ivy2 + - $HOME/.sbt/boot + - $HOME/.sbt/launchers + - $HOME/.coursier +jdk: oraclejdk8 +language: scala +script: + - sbt test package +before_cache: + - find $HOME/.sbt -name "*.lock" | xargs rm + - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm diff --git a/build.sbt b/build.sbt index f28d26b..0f43676 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ organization := "com.typesafe" version := "1.1.0" -lazy val scala210Version = "2.10.5" +lazy val scala210Version = "2.10.6" lazy val scala211Version = "2.11.8" lazy val scala212Version = "2.12.1" @@ -22,17 +22,12 @@ publishTo := Some(typesafeIvyReleases) publishMavenStyle := false -scalacOptions <<= (scalaVersion) map { sv => - Seq("-unchecked", "-deprecation") ++ - { if (sv.startsWith("2.9")) Seq.empty else Seq("-feature") } -} - -javacOptions in (Compile, doc) := Seq("-target", "1.6", "-source", "1.6") +scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings") licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")) libraryDependencies ++= Seq( - "org.scalatest" %% "scalatest" % "3.0.0" % Test + "org.scalatest" %% "scalatest" % "3.0.1" % Test ) initialCommands in console := {