Skip to content

Commit 82828c8

Browse files
author
Starzu
committed
Scala.js 1.0.0-M1
1 parent c6bf2d0 commit 82828c8

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ dist: trusty
44
jdk: oraclejdk8
55
scala:
66
- 2.11.11
7-
- 2.12.2
7+
- 2.12.3
8+
9+
env:
10+
- SCALAJS_VERSION="0.6.20"
11+
- SCALAJS_VERSION="1.0.0-M1"
812

913
before_script:
1014
- "export DISPLAY=:99.0"
@@ -17,11 +21,11 @@ before_script:
1721
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
1822
- sudo dpkg -i google-chrome*.deb
1923
# Install Selenium chromedriver
20-
- wget http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip
24+
- wget http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
2125
- unzip chromedriver_linux64.zip -d selenium-bin
2226
- export PATH=$PWD/selenium-bin:$PATH
2327

2428
script:
25-
- sbt ++$TRAVIS_SCALA_VERSION "set (jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.scalajs.jsenv.selenium.Chrome))" test
29+
- sbt ++$TRAVIS_SCALA_VERSION "set (jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.openqa.selenium.remote.DesiredCapabilities.chrome()))" test
2630
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
2731
- cd example && sbt ++$TRAVIS_SCALA_VERSION compile

build.sbt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
name := "udash-jquery"
33

4-
version := "1.1.0"
4+
version := "1.1.1"
55
organization := "io.udash"
6-
scalaVersion := "2.12.2"
7-
crossScalaVersions := Seq("2.11.11", "2.12.2")
6+
scalaVersion := "2.12.3"
7+
crossScalaVersions := Seq("2.11.11", "2.12.3")
88
scalacOptions in ThisBuild ++= Seq(
99
"-feature",
1010
"-deprecation",
@@ -20,18 +20,16 @@ scalacOptions in ThisBuild ++= Seq(
2020
}.getOrElse("-Xlint:_")
2121
)
2222

23-
jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.scalajs.jsenv.selenium.Firefox())
23+
jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.openqa.selenium.remote.DesiredCapabilities.chrome())
2424

2525
libraryDependencies ++= Seq(
26-
"org.scala-js" %%% "scalajs-dom" % "0.9.2",
26+
"org.scala-js" %%% "scalajs-dom" % "0.9.3",
2727
"org.scalatest" %%% "scalatest" % "3.0.3" % Test,
2828
"com.lihaoyi" %%% "scalatags" % "0.6.5" % Test
2929
)
3030

31-
jsDependencies +=
32-
"org.webjars" % "jquery" % "3.2.1" / "3.2.1/jquery.js" minified "3.2.1/jquery.min.js"
33-
34-
requiresDOM in Test := true
31+
jsDependencies += "org.webjars" % "jquery" % "3.2.1" / "3.2.1/jquery.js" minified "3.2.1/jquery.min.js"
3532

3633
lazy val root = project.in(file("."))
3734
.enablePlugins(ScalaJSPlugin)
35+
.enablePlugins(JSDependenciesPlugin)

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/plugins.sbt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
logLevel := Level.Warn
22

3-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.18")
3+
val scalaJSVersion =
4+
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.20")
45

5-
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.1.3"
6+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
7+
8+
{
9+
if (scalaJSVersion.startsWith("0.6.")) Nil
10+
else Seq(addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.0-M1"))
11+
}
12+
13+
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.2.0"

0 commit comments

Comments
 (0)