Skip to content

Add Scala 2.13.0-M5 support #239

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

Merged
merged 2 commits into from
Oct 30, 2018
Merged
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
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jdk:
scala:
- 2.10.7
- 2.11.12
- 2.12.6
- 2.13.0-M4
- 2.12.7
- 2.13.0-M5

before_cache:
- find "$HOME/.sbt/" -name '*.lock' -print0 | xargs -0 rm
Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import sbtcrossproject.CrossType

val Org = "org.scoverage"
val MockitoVersion = "2.19.0"
val ScalatestVersion = "3.0.6-SNAP1"
val ScalatestVersion = "3.0.6-SNAP4"

val appSettings = Seq(
organization := Org,
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.6", "2.13.0-M4"),
scalaVersion := "2.12.7",
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.7", "2.13.0-M5"),
fork in Test := false,
publishMavenStyle := true,
publishArtifact in Test := false,
Expand Down Expand Up @@ -91,7 +91,7 @@ lazy val plugin = Project("scalac-scoverage-plugin", file("scalac-scoverage-plug
)).settings(libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor > 10 => Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.1.0",
"org.scala-lang.modules" %% "scala-xml" % "1.1.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0" % "test"
)
case _ => Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")

addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")

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

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.5.0")
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CodeGrid(mFile: MeasuredFile, sourceEncoding: Option[String]) {
val code = lines map (line => {
var style = cellStyle(NoData)
val sb = new StringBuilder
sb append lineNumber + " "
sb append lineNumber append " "
lineNumber = lineNumber + 1
sb append spanStart(NoData)
line.map(cell => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import scala.xml.XML
class CoberturaXmlWriterTest extends FunSuite with BeforeAndAfter with OneInstancePerTest {

def tempDir(): File = {
val dir = new File(IOUtils.getTempDirectory, UUID.randomUUID().toString)
val dir = new File(IOUtils.getTempDirectory, UUID.randomUUID.toString)
dir.mkdirs()
dir.deleteOnExit()
dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ class IOUtilsTest extends FreeSpec with MockitoSugar with OneInstancePerTest wit
val base = new File(IOUtils.getTempDirectory, UUID.randomUUID.toString)
base.mkdir() shouldBe true

val file1 = new File(base + "/" + Constants.XMLReportFilename)
val file1 = new File(base, Constants.XMLReportFilename)
val writer1 = new FileWriter(file1)
writer1.write("1\n3\n5\n\n\n7\n")
writer1.close()

val file2 = new File(base + "/" + UUID.randomUUID + "/" + Constants.XMLReportFilename)
val file2 = new File(base, UUID.randomUUID.toString + "/" + Constants.XMLReportFilename)
file2.getParentFile.mkdir()
val writer2 = new FileWriter(file2)
writer2.write("2\n4\n6\n\n8\n")
writer2.close()

val file3 = new File(file2.getParent + "/" + UUID.randomUUID + "/" + Constants.XMLReportFilename)
val file3 = new File(file2.getParentFile, UUID.randomUUID.toString + "/" + Constants.XMLReportFilename)
file3.getParentFile.mkdir()
val writer3 = new FileWriter(file3)
writer3.write("11\n20\n30\n\n44\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ScoverageHtmlWriterTest extends FunSuite {
"scala.Predef.println", "Apply", false, 0)

def createTemporaryDir(): File = {
val dir = new File(IOUtils.getTempDirectory, UUID.randomUUID().toString)
val dir = new File(IOUtils.getTempDirectory, UUID.randomUUID.toString)
dir.mkdirs()
dir.deleteOnExit()
dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class SerializerTest extends FunSuite with MockitoSugar with OneInstancePerTest
|false
|def test : String
|\f
|""".stripMargin.split("\n").toIterator
|""".stripMargin.split("\n").iterator
val statements = List(Statement(
Location("org.scoverage", "test", "org.scoverage.test", ClassType.Trait, "mymethod", "mypath"),
14, 100, 200, 4, "def test : String", "test", "DefDef", true, 1
Expand Down