Skip to content

Commit 573ce1f

Browse files
authored
Merge pull request #37 from sjrd/upgrades
Upgrades.
2 parents 371d321 + eb32086 commit 573ce1f

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ script:
77
- sbt ++$TRAVIS_SCALA_VERSION 'set scalaJSStage in Global := FullOptStage' testSuiteJS/test
88
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
99
scala:
10-
- 2.10.6
11-
- 2.11.11
12-
- 2.12.2
13-
- 2.13.0-M1
10+
- 2.10.7
11+
- 2.11.12
12+
- 2.12.4
13+
- 2.13.0-M2
1414
jdk:
1515
- oraclejdk8
1616
env:
17-
- SCALAJS_VERSION=0.6.18
17+
- SCALAJS_VERSION=0.6.21
1818
- SCALAJS_VERSION=1.0.0-M1
19+
- SCALAJS_VERSION=1.0.0-M2
1920

2021
cache:
2122
directories:

build.sbt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
crossScalaVersions in ThisBuild := Seq("2.11.11", "2.10.6", "2.12.2", "2.13.0-M1")
1+
import sbtcrossproject.crossProject
2+
3+
crossScalaVersions in ThisBuild := Seq("2.12.4", "2.11.12", "2.10.7", "2.13.0-M2")
24
scalaVersion in ThisBuild := (crossScalaVersions in ThisBuild).value.head
35

46
val commonSettings: Seq[Setting[_]] = Seq(
@@ -56,12 +58,13 @@ lazy val root: Project = project.in(file(".")).
5658
pomIncludeRepository := { _ => false }
5759
)
5860

59-
lazy val testSuite = crossProject.
61+
lazy val testSuite = crossProject(JSPlatform, JVMPlatform).
6062
jsConfigure(_ .enablePlugins(ScalaJSJUnitPlugin)).
6163
settings(commonSettings: _*).
6264
settings(
6365
testOptions +=
64-
Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a")
66+
Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a"),
67+
scalacOptions += "-target:jvm-1.8"
6568
).
6669
jsSettings(
6770
name := "java.time testSuite on JS"

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.15
1+
sbt.version=0.13.16

project/build.sbt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
val scalaJSVersion =
2-
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.18")
2+
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.21")
33

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

6+
{
7+
if (scalaJSVersion != "1.0.0-M1")
8+
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.3.0")
9+
else
10+
Nil
11+
}
12+
613
addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "0.8.0")

0 commit comments

Comments
 (0)