Skip to content

Commit d5653ce

Browse files
authored
Merge pull request #427 from SethTisue/add-m5-support
support Scala 2.13.0-M5 (and drop M4)
2 parents 5789af1 + d692437 commit d5653ce

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ scala:
1616
- 2.10.7
1717
- 2.11.12
1818
- 2.12.6
19-
- 2.13.0-M4
19+
- 2.13.0-M5
2020
jdk:
2121
- oraclejdk8
2222
env:
@@ -48,5 +48,5 @@ matrix:
4848
exclude:
4949
- scala: 2.10.7
5050
env: PLATFORM=js SBT_PARALLEL=true WORKERS=1 DEPLOY=true SCALAJS_VERSION=1.0.0-M3
51-
- scala: 2.13.0-M4
52-
env: PLATFORM=js SBT_PARALLEL=true WORKERS=1 DEPLOY=true SCALAJS_VERSION=1.0.0-M3
51+
- scala: 2.13.0-M5
52+
env: PLATFORM=js SBT_PARALLEL=true WORKERS=1 DEPLOY=true SCALAJS_VERSION=0.6.25

build.sbt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lazy val travisCommit = Option(System.getenv().get("TRAVIS_COMMIT"))
1313

1414
lazy val scalaVersionSettings = Seq(
1515
scalaVersion := "2.12.6",
16-
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.13.0-M4", scalaVersion.value),
16+
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.13.0-M5", scalaVersion.value),
1717
scalaMajorVersion := {
1818
val v = scalaVersion.value
1919
CrossVersion.partialVersion(v).map(_._2.toInt).getOrElse {
@@ -70,15 +70,14 @@ lazy val sharedSettings = MimaSettings.settings ++ scalaVersionSettings ++ Seq(
7070
"-unchecked",
7171
"-Xfuture",
7272
"-Ywarn-dead-code",
73-
"-Ywarn-inaccessible",
74-
"-Ywarn-nullary-override",
75-
"-Ywarn-nullary-unit",
7673
"-Ywarn-numeric-widen") ++ {
77-
val modern = Seq("-Xlint:-unused", "-Ywarn-infer-any", "-Ywarn-unused-import", "-Ywarn-unused:-patvars,-implicits,-locals,-privates,-explicits")
74+
val modern = Seq("-Xlint:-unused", "-Ywarn-unused:-patvars,-implicits,-locals,-privates,-explicits")
75+
val removed = Seq("-Ywarn-inaccessible", "-Ywarn-nullary-override", "-Ywarn-nullary-unit")
76+
val removedModern = Seq("-Ywarn-infer-any", "-Ywarn-unused-import")
7877
scalaMajorVersion.value match {
79-
case 10 => Seq("-Xfatal-warnings", "-Xlint")
80-
case 11 => Seq("-Xfatal-warnings", "-Xlint", "-Ywarn-infer-any", "-Ywarn-unused-import")
81-
case 12 => "-Xfatal-warnings" +: modern
78+
case 10 => Seq("-Xfatal-warnings", "-Xlint") ++ removed
79+
case 11 => Seq("-Xfatal-warnings", "-Xlint", "-Ywarn-infer-any", "-Ywarn-unused-import") ++ removed
80+
case 12 => "-Xfatal-warnings" +: (modern ++ removed ++ removedModern)
8281
case 13 => modern
8382
}
8483
},
@@ -93,7 +92,7 @@ lazy val sharedSettings = MimaSettings.settings ++ scalaVersionSettings ++ Seq(
9392
scalacOptions in Test ~= (_ filterNot (_ == "-Xfatal-warnings")),
9493

9594
mimaPreviousArtifacts := {
96-
// TODO: re-enable MiMa for 2.13.0-M4 once there is a release out
95+
// TODO: re-enable MiMa for 2.13 once there is a release out
9796
if (scalaMajorVersion.value == 13) Set()
9897
else Set("org.scalacheck" %% "scalacheck" % "1.14.0")
9998
},

0 commit comments

Comments
 (0)