Merge pull request #197 from eikek/scala-update

Update scala to 2.13.3
This commit is contained in:
mergify[bot] 2020-07-31 23:20:55 +00:00 committed by GitHub
commit 4a52d95896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,6 @@
language: scala
scala:
- 2.13.2
- 2.13.3
jdk:
- openjdk8

View File

@ -17,7 +17,7 @@ val scalafixSettings = Seq(
val sharedSettings = Seq(
organization := "com.github.eikek",
scalaVersion := "2.13.2",
scalaVersion := "2.13.3",
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
@ -26,7 +26,8 @@ val sharedSettings = Seq(
"-feature",
"-Werror", // fail when there are warnings
"-unchecked",
"-Xlint:_",
// remove -byname-implicit, once https://github.com/scala/bug/issues/12072 is resolved
"-Xlint:-byname-implicit,_",
"-Wdead-code",
"-Wunused",
"-Wvalue-discard",

View File

@ -18,7 +18,7 @@ trait FileChecks {
Files.exists(p) && Files.size(p) > 0
def isType(mime: MimeType): Boolean =
TikaMimetype.detect[IO](p).map(_ == mime).unsafeRunSync
TikaMimetype.detect[IO](p).map(_ == mime).unsafeRunSync()
def isPDF: Boolean =
isType(MimeType.pdf)

View File

@ -41,7 +41,7 @@ object ExternConvTest extends SimpleTestSuite with FileChecks {
assert(p.isNonEmpty && p.isPDF)
}
)
.unsafeRunSync
.unsafeRunSync()
}
test("convert office to pdf") {
@ -69,7 +69,7 @@ object ExternConvTest extends SimpleTestSuite with FileChecks {
assert(p.isNonEmpty && p.isPDF)
}
)
.unsafeRunSync
.unsafeRunSync()
}
test("convert image to pdf") {
@ -98,7 +98,7 @@ object ExternConvTest extends SimpleTestSuite with FileChecks {
assert(txt.isNonEmpty && txt.isPlainText)
}
)
.unsafeRunSync
.unsafeRunSync()
}
}

View File

@ -20,10 +20,10 @@ object TestFiles {
lazy val letterDEText =
ExampleFiles.letter_de_txt
.readText[IO](8 * 1024, blocker)
.unsafeRunSync
.unsafeRunSync()
lazy val letterENText =
ExampleFiles.letter_en_txt
.readText[IO](8 * 1024, blocker)
.unsafeRunSync
.unsafeRunSync()
}

View File

@ -29,6 +29,6 @@ object ZipTest extends SimpleTestSuite {
}
.compile
.drain
.unsafeRunSync
.unsafeRunSync()
}
}