Skip to content

Commit

Permalink
Merge pull request #58 from sjrd/upgrades
Browse files Browse the repository at this point in the history
Upgrades.
  • Loading branch information
sjrd committed Jul 3, 2018
2 parents 8fdfdb9 + 2f405bb commit 28343e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@ script:
scala:
- 2.10.7
- 2.11.12
- 2.12.4
- 2.12.6
- 2.13.0-M3
- 2.13.0-M4
jdk:
- oraclejdk8
env:
- SCALAJS_VERSION=0.6.22
- SCALAJS_VERSION=0.6.24
- SCALAJS_VERSION=1.0.0-M3
- SCALAJS_VERSION=1.0.0-M5
matrix:
exclude:
- scala: 2.10.7
env: SCALAJS_VERSION=1.0.0-M3
- scala: 2.13.0-M4
env: SCALAJS_VERSION=1.0.0-M3
- scala: 2.10.7
env: SCALAJS_VERSION=1.0.0-M5

cache:
directories:
Expand Down
11 changes: 8 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ lazy val root = project.in(file(".")).
enablePlugins(ScalaJSPlugin)

crossScalaVersions in ThisBuild := {
if (scalaJSVersion.startsWith("1.")) Seq("2.12.4", "2.11.12", "2.13.0-M3")
else Seq("2.12.4", "2.11.12", "2.10.7", "2.13.0-M3")
val allVersions = Seq("2.12.6", "2.11.12", "2.10.7", "2.13.0-M3", "2.13.0-M4")
if (scalaJSVersion.startsWith("0.6."))
allVersions
else if (scalaJSVersion == "1.0.0-M3")
allVersions.filter(v => !v.startsWith("2.10.") && v != "2.13.0-M4")
else
allVersions.filter(!_.startsWith("2.10."))
}
scalaVersion in ThisBuild := (crossScalaVersions in ThisBuild).value.head

Expand All @@ -16,7 +21,7 @@ version := "0.9.4-SNAPSHOT"
organization := "be.doeraene"

libraryDependencies +=
"org.scala-js" %%% "scalajs-dom" % "0.9.5"
"org.scala-js" %%% "scalajs-dom" % "0.9.6"

scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings")

Expand Down
2 changes: 1 addition & 1 deletion project/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val scalaJSVersion =
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.22")
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.24")

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

0 comments on commit 28343e2

Please sign in to comment.