Skip to content

WIP: Scala.js 1.0.0-M1 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ dist: trusty
jdk: oraclejdk8
scala:
- 2.11.11
- 2.12.2
- 2.12.3

env:
- SCALAJS_VERSION="0.6.20"
- SCALAJS_VERSION="1.0.0-M1"

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

script:
- sbt ++$TRAVIS_SCALA_VERSION "set (jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.scalajs.jsenv.selenium.Chrome))" test
- sbt ++$TRAVIS_SCALA_VERSION "set (jsEnv in Test := new org.scalajs.jsenv.selenium.SeleniumJSEnv(org.openqa.selenium.remote.DesiredCapabilities.chrome()))" test
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
- cd example && sbt ++$TRAVIS_SCALA_VERSION compile
16 changes: 7 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

name := "udash-jquery"

version := "1.1.0"
version := "1.1.1"
organization := "io.udash"
scalaVersion := "2.12.2"
crossScalaVersions := Seq("2.11.11", "2.12.2")
scalaVersion := "2.12.3"
crossScalaVersions := Seq("2.11.11", "2.12.3")
scalacOptions in ThisBuild ++= Seq(
"-feature",
"-deprecation",
Expand All @@ -20,18 +20,16 @@ scalacOptions in ThisBuild ++= Seq(
}.getOrElse("-Xlint:_")
)

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

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

jsDependencies +=
"org.webjars" % "jquery" % "3.2.1" / "3.2.1/jquery.js" minified "3.2.1/jquery.min.js"

requiresDOM in Test := true
jsDependencies += "org.webjars" % "jquery" % "3.2.1" / "3.2.1/jquery.js" minified "3.2.1/jquery.min.js"

lazy val root = project.in(file("."))
.enablePlugins(ScalaJSPlugin)
.enablePlugins(JSDependenciesPlugin)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 0.13.15
sbt.version = 0.13.16
12 changes: 10 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
logLevel := Level.Warn

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

libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.1.3"
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)

{
if (scalaJSVersion.startsWith("0.6.")) Nil
else Seq(addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.0-M1"))
}

libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.2.0"