Skip to content

Commit

Permalink
bump Scala, sbt, Scala.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Sep 15, 2020
1 parent c60de43 commit 57353cd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ language: scala

scala:
- 2.11.12
- 2.12.10
- 2.13.1
- 2.12.12
- 2.13.3

env:
- SCALAJS_VERSION= ADOPTOPENJDK=8
- SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
- SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
- SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8
- SCALAJS_VERSION= ADOPTOPENJDK=11

matrix:
exclude:
- scala: 2.11.12
env: SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
env: SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
- scala: 2.11.12
env: SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8

Expand Down
16 changes: 11 additions & 5 deletions jvm/src/test/scala/scala/xml/CompilerErrors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ import org.junit.Test

class CompilerErrors extends CompilerTesting {
@Test
def t7185() =
expectXmlError("""|overloaded method value apply with alternatives:
| (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
| (i: Int)scala.xml.Node
| cannot be applied to ()""".stripMargin,
def t7185() = {
// the error message here differs a bit by Scala version
import util.Properties.versionNumberString
val thing =
if (versionNumberString.startsWith("2.11") || versionNumberString.startsWith("2.12")) "method value"
else "method"
expectXmlError(s"""|overloaded $thing apply with alternatives:
| (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
| (i: Int)scala.xml.Node
| cannot be applied to ()""".stripMargin,
"""|object Test {
| <e></e>()
|}""")
}

@Test
def t1878_typer() =
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.8
sbt.version=1.3.13
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
val scalaJSVersion =
Option(System.getenv("SCALAJS_VERSION")).filter(_.nonEmpty).getOrElse("0.6.32")
Option(System.getenv("SCALAJS_VERSION")).filter(_.nonEmpty).getOrElse("0.6.33")

addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.1.3")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
Expand Down

0 comments on commit 57353cd

Please sign in to comment.