Skip to content

Commit 10d77e9

Browse files
committed
Upgrades.
* Scala 2.12.8 and 2.13.0-RC1 * Scala.js 0.6.27 and 1.0.0-M7
1 parent c48e2af commit 10d77e9

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,21 @@ language: scala
33
script:
44
- sbt ++$TRAVIS_SCALA_VERSION package doc example/compile
55
- sbt scalafmtTest
6-
- sbt ++2.11.11 readme/run
6+
- sbt ++2.11.12 readme/run
77
scala:
88
- 2.10.7
99
- 2.11.12
10-
- 2.12.6
11-
- 2.13.0-M3
12-
- 2.13.0-M4
10+
- 2.12.8
11+
- 2.13.0-RC1
1312
jdk:
1413
- oraclejdk8
1514
env:
16-
- SCALAJS_VERSION=0.6.23
17-
- SCALAJS_VERSION=1.0.0-M3
15+
- SCALAJS_VERSION=0.6.27
16+
- SCALAJS_VERSION=1.0.0-M7
1817
matrix:
1918
exclude:
2019
- scala: 2.10.7
21-
env: SCALAJS_VERSION=1.0.0-M3
22-
- scala: 2.13.0-M4
23-
env: SCALAJS_VERSION=1.0.0-M3
20+
env: SCALAJS_VERSION=1.0.0-M7
2421

2522
cache:
2623
directories:

build.sbt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,24 @@ lazy val root = project.in(file(".")).
66
name := "Scala.js DOM"
77

88
crossScalaVersions in ThisBuild := {
9-
if (scalaJSVersion.startsWith("1.")) Seq("2.12.6", "2.11.12", "2.13.0-M3")
10-
else Seq("2.12.6", "2.11.12", "2.10.7", "2.13.0-M3", "2.13.0-M4")
9+
if (scalaJSVersion.startsWith("1.")) Seq("2.12.8", "2.11.12", "2.13.0-RC1")
10+
else Seq("2.12.8", "2.11.12", "2.10.7", "2.13.0-RC1")
1111
}
1212
scalaVersion in ThisBuild := crossScalaVersions.value.head
1313

1414
val commonSettings = Seq(
1515
version := "0.9.7-SNAPSHOT",
1616
organization := "org.scala-js",
17-
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings")
17+
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
18+
19+
// Work around https://github.com/scala-js/scala-js/issues/3612
20+
scalacOptions in (Compile, doc) := {
21+
val prev = (scalacOptions in (Compile, doc)).value
22+
if (scalaJSVersion.startsWith("0.6.") && scalaVersion.value.startsWith("2.13."))
23+
prev.filter(_ != "-Xfatal-warnings")
24+
else
25+
prev
26+
}
1827
)
1928

2029
normalizedName := "scalajs-dom"
@@ -38,8 +47,7 @@ scalacOptions ++= {
3847
def hasNewCollections(version: String): Boolean = {
3948
!version.startsWith("2.10.") &&
4049
!version.startsWith("2.11.") &&
41-
!version.startsWith("2.12.") &&
42-
version != "2.13.0-M3"
50+
!version.startsWith("2.12.")
4351
}
4452

4553
/** Returns the appropriate subdirectory of `sourceDir` depending on whether

project/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
val scalaJSVersion =
2-
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.23")
2+
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.27")
33

44
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
55

0 commit comments

Comments
 (0)