mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 02:49:32 +00:00
commit
4a52d95896
@ -1,6 +1,6 @@
|
||||
language: scala
|
||||
scala:
|
||||
- 2.13.2
|
||||
- 2.13.3
|
||||
|
||||
jdk:
|
||||
- openjdk8
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -29,6 +29,6 @@ object ZipTest extends SimpleTestSuite {
|
||||
}
|
||||
.compile
|
||||
.drain
|
||||
.unsafeRunSync
|
||||
.unsafeRunSync()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user