Bump up Scala version

This commit is contained in:
takayahilton 2020-06-01 14:36:43 +09:00
parent 2d5bd9b294
commit b0e391c560
5 changed files with 12 additions and 9 deletions

View File

@ -9,8 +9,8 @@ language: scala
scala:
- "2.11.12"
- "2.12.10"
- "2.13.1"
- "2.12.11"
- "2.13.2"
jdk:
- openjdk8

View File

@ -33,7 +33,7 @@ lazy val commonSettings = Seq(
scalacOptions in (Compile, console) ~= { _ filterNot { o => o == "-Ywarn-unused-import" || o == "-Xfatal-warnings" } },
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,
scalaVersion := Scala211,
crossScalaVersions := Seq(Scala211, "2.12.10", "2.13.0"),
crossScalaVersions := Seq(Scala211, "2.12.11", "2.13.2"),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")

View File

@ -1,13 +1,14 @@
package simulacrum
import org.scalatest.{ WordSpec, Matchers }
// NB: These imports are because the tests are compiled with `-Yno-imports`, to
// ensure that simulacrum works in projects that use that flag.
import scala.Int
import scala.collection.immutable.List
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
class JvmTypeClassTest extends WordSpec with Matchers {
class JvmTypeClassTest extends AnyWordSpec with Matchers {
"the @typeclass annotation" should {
"generate serializable traits by default" in {
serializeDeserialize(Semigroup[Int]).append(1, 2) shouldBe 3

View File

@ -3,9 +3,10 @@ package simulacrum.jvmexamples
import simulacrum._
import shapeless.test.illTyped
import org.scalatest.{ WordSpec, Matchers }
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
class Examples extends WordSpec with Matchers {
class Examples extends AnyWordSpec with Matchers {
"the @typeclass annotation" should {

View File

@ -2,9 +2,10 @@ package simulacrum.examples
import simulacrum._
import org.scalatest.{ WordSpec, Matchers }
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
class Examples extends WordSpec with Matchers {
class Examples extends AnyWordSpec with Matchers {
"the @typeclass annotation" should {