Skip to content

Commit

Permalink
configureLinux by disabling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Oct 20, 2023
1 parent a003be1 commit 8aa27dc
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ fun Project.configureKmpTargets() {
configureJvm()
}

if (hasLinux) {
configureLinux()
}

withIf(!COMMON_JVM_ONLY, kmpExt) {
// FIXME Configure JS
// FIXME Configure Apple
Expand Down Expand Up @@ -156,6 +160,16 @@ fun Project.configureJvm() {
}
}

fun Project.configureLinux() {
kotlin {
linuxX64 {
tasks.named("linuxX64Test") {
enabled = false
}
}
}
}

fun KotlinMultiplatformExtension.configureSourceSetsConvention() {
sourceSets.all {
val srcDir = if (name.endsWith("Main")) "src" else "test"
Expand Down

0 comments on commit 8aa27dc

Please sign in to comment.