Skip to content

Commit

Permalink
enable Scala 2.13.0-M4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jun 16, 2018
1 parent e961aaf commit 14a68b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ matrix:
osx_image: xcode9.3

- scala: 2.13.0-M4
env: CMD=compile
env:
CMD="scalafmt::test test:scalafmt::test sbt:scalafmt::test test"
TRAVIS_SCALA_VERSION=2.13.0-M4
os: linux
dist: trusty

- scala: 2.13.0-M4
os: osx
env:
CMD="compile"
CMD="scalafmt::test test:scalafmt::test sbt:scalafmt::test test"
TRAVIS_SCALA_VERSION=2.13.0-M4
language: java
osx_image: xcode9.3
Expand Down
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ val io = (project in file("io"))
commonSettings,
name := "IO",
libraryDependencies ++= {
if (scalaVersion.value startsWith "2.13.") Vector()
else Vector(scalaCompiler.value % Test, scalaCheck % Test, scalatest % Test)
Vector(scalaCompiler.value % Test, scalaCheck % Test, scalatest.value % Test)
} ++ Vector(appleFileEvents),
libraryDependencies ++= Seq(jna, jnaPlatform),
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala",
Expand Down
7 changes: 6 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ object Dependencies {
val scalaCompiler = Def.setting { "org.scala-lang" % "scala-compiler" % scalaVersion.value }

val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5-M1"
val scalatest = Def.setting {
if (scalaVersion.value == "2.13.0-M4")
"org.scalatest" %% "scalatest" % "3.0.6-SNAP1"
else
"org.scalatest" %% "scalatest" % "3.0.5-M1"
}
val jna = "net.java.dev.jna" % "jna" % "4.5.0"
val jnaPlatform = "net.java.dev.jna" % "jna-platform" % "4.5.0"
val appleFileEvents = "com.swoval" % "apple-file-events" % "1.3.2"
Expand Down

0 comments on commit 14a68b7

Please sign in to comment.