Skip to content

#24 TS Compilation testing #25

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 7 commits into from
Apr 10, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
exclude slow TSCompile tests
  • Loading branch information
aSemy committed Apr 10, 2022
commit 3b2ffa9905c0fd98d2fd5a65e3f006f1b112de14
13 changes: 5 additions & 8 deletions docs/code/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {
}

tasks.withType<KotlinCompile> {
mustRunAfter(tasks.knit)
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
Expand All @@ -50,13 +51,9 @@ knit {
}
}

tasks.withType<Test>().configureEach { dependsOn(tasks.knit) }

tasks.test {
dependsOn(tasks.knit)
// finalizedBy(tasks.knitCheck)
// TSCompile tests are slow, they don't need to run every time
systemProperty("kotest.tags", "!TSCompile")
}

tasks.compileKotlin { mustRunAfter(tasks.knit) }

//tasks.knitCheck {
// dependsOn(tasks.test)
//}