Skip to content
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

Upgrade to Scala 2.13.0-RC2 #500

Merged
merged 4 commits into from
May 21, 2019
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ matrix:
script:
- ./sbt ++$SCALA_VERSION "; coverage; ${PROJECT}/test; coverageReport"
- "./sbt coverageAggregate && bash <(curl -s https://codecov.io/bash)"
- env: SCALA_VERSION=2.13.0-RC1 PROJECT=projectJVM2_13
- env: SCALA_VERSION=2.13.0-RC2 PROJECT=projectJVM2_13
jdk: openjdk11
services: postgresql
before_script: psql -c 'create database travis_ci_test;' -U postgres
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ package wvlet.airframe.canvas
import java.nio.ByteBuffer

import org.scalacheck.Gen
import org.scalatest.prop.PropertyChecks
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks
import wvlet.airframe.AirframeSpec
import wvlet.airframe.control.Control

/**
*
*/
class CanvasTest extends AirframeSpec with PropertyChecks {
class CanvasTest extends AirframeSpec with ScalaCheckPropertyChecks {

def check[A](v: A, canvas: Canvas, writer: Canvas => Unit, reader: Canvas => A): Unit = {
writer(canvas)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ package wvlet.airframe.codec
import java.math.BigInteger

import org.scalacheck.Arbitrary
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
import wvlet.airframe.msgpack.spi.MessagePack
import wvlet.airframe.surface.{ArraySurface, GenericSurface, Surface}

/**
*
*/
class PrimitiveCodecTest extends CodecSpec with GeneratorDrivenPropertyChecks {
class PrimitiveCodecTest extends CodecSpec with ScalaCheckDrivenPropertyChecks {
import scala.collection.JavaConverters._

def roundTripTest[T](surface: Surface, dataType: DataType)(implicit impArb: Arbitrary[T]): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import java.time.Instant

import org.scalacheck.Arbitrary.arbitrary
import org.scalacheck.Gen
import org.scalatest.prop.PropertyChecks
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks
import wvlet.airframe.AirframeSpec
import wvlet.airframe.msgpack.io.ByteArrayBuffer

/**
*
*/
class RoundTripTest extends AirframeSpec with PropertyChecks {
class RoundTripTest extends AirframeSpec with ScalaCheckPropertyChecks {

val buf = ByteArrayBuffer.newBuffer(1024)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ package wvlet.airframe.msgpack.spi

import java.math.BigInteger

import org.scalatest.prop.PropertyChecks
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks
import wvlet.airframe.AirframeSpec
import wvlet.airframe.msgpack.io.ByteArrayBuffer
import wvlet.airframe.msgpack.spi.Value._

/**
*
*/
class ValueTest extends AirframeSpec with PropertyChecks {
class ValueTest extends AirframeSpec with ScalaCheckPropertyChecks {

private def rankOf(mf: MessageFormat): Int = {
val order =
Expand Down Expand Up @@ -169,9 +169,9 @@ class ValueTest extends AirframeSpec with PropertyChecks {
}

"check appropriate range for integers" in {
import java.lang.{Byte, Short}

import ValueFactory._
import java.lang.Byte
import java.lang.Short

newInteger(Byte.MAX_VALUE).asByte shouldBe Byte.MAX_VALUE
newInteger(Byte.MIN_VALUE).asByte shouldBe Byte.MIN_VALUE
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import sbtcrossproject.{CrossType, crossProject}

val SCALA_2_11 = "2.11.12"
val SCALA_2_12 = "2.12.8"
val SCALA_2_13 = "2.13.0-RC1"
val SCALA_2_13 = "2.13.0-RC2"

val untilScala2_12 = SCALA_2_12 :: SCALA_2_11 :: Nil
val targetScalaVersions = SCALA_2_13 :: untilScala2_12

val SCALATEST_VERSION = "3.0.8-RC2"
val SCALATEST_VERSION = "3.0.8-RC4"
val SCALACHECK_VERSION = "1.14.0"
val MSGPACK_VERSION = "0.8.16"
val SCALA_PARSER_COMBINATOR_VERSION = "1.1.2"
Expand Down