Skip to content

Commit

Permalink
Added tier3 targets #3748 (#3761)
Browse files Browse the repository at this point in the history
<!-- 
If this PR updates documentation, please update all relevant versions of
the docs, see:
https://github.com/kotest/kotest/tree/master/documentation/versioned_docs
The documentation at
https://github.com/kotest/kotest/tree/master/documentation/docs is the
documentation for the next minor or major version _TO BE RELEASED_
-->

Closes #3748
  • Loading branch information
sksamuel committed Nov 13, 2023
1 parent 42af0ff commit 176da42
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- jvmTest
- jsTest
- linuxX64Test linuxArm64TestKlibrary
- androidNativeX86TestKlibrary androidNativeX64TestKlibrary androidNativeArm32TestKlibrary androidNativeArm64TestKlibrary
- :kotest-framework:kotest-framework-multiplatform-plugin-gradle:test
steps:
- name: Checkout the repo
Expand Down Expand Up @@ -83,8 +84,8 @@ jobs:
target:
- macosX64Test macosArm64Test
- iosX64Test iosSimulatorArm64Test iosArm64TestKlibrary iosArm32TestKlibrary
- tvosX64Test tvosArm64TestKlibrary
- watchosArm32TestKlibrary watchosArm64TestKlibrary watchosX86Test watchosX64Test
- tvosX64Test tvosArm64TestKlibrary tvosSimulatorArm64Test
- watchosArm32TestKlibrary watchosArm64TestKlibrary watchosX86Test watchosX64Test watchosSimulatorArm64Test watchosDeviceArm64TestKlibrary

steps:
- name: Checkout the repo
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
- jsTest publishJsPublicationToDeployRepository
- linuxX64Test publishLinuxX64PublicationToDeployRepository
- linuxArm64TestKlibrary publishLinuxArm64PublicationToDeployRepository
- androidNativeX86TestKlibrary androidNativeX64TestKlibrary publishAndroidNativeX64PublicationToDeployRepository publishAndroidNativeX86PublicationToDeployRepository
- androidNativeArm32Klibrary androidNativeArm64TestKlibrary publishAndroidNativeArm32PublicationToDeployRepository publishAndroidNativeArm64PublicationToDeployRepository
steps:
- uses: kotest/kotest-action@master
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@file:Suppress("UNUSED_VARIABLE")

plugins {
id("kotlin-conventions")
}

kotlin {
if (!project.hasProperty(Ci.JVM_ONLY)) {
androidNativeX86()
androidNativeX64()
androidNativeArm32()
androidNativeArm64()
sourceSets {

// Main source sets
val commonMain by getting {}
val desktopMain by getting { dependsOn(commonMain) }
val androidNativeX86Main by getting { dependsOn(desktopMain) }
val androidNativeX64Main by getting { dependsOn(desktopMain) }
val androidNativeArm32Main by getting { dependsOn(desktopMain) }
val androidNativeArm64Main by getting { dependsOn(desktopMain) }

val commonTest by getting
val nativeTest by getting { dependsOn(commonTest) }
val androidNativeX86Test by getting { dependsOn(nativeTest) }
val androidNativeX64Test by getting { dependsOn(nativeTest) }
val androidNativeArm32Test by getting { dependsOn(nativeTest) }
val androidNativeArm64Test by getting { dependsOn(nativeTest) }
}
} else {
// Make sure every project has at least one valid target, otherwise Kotlin compiler will complain
jvm()
}
}
9 changes: 6 additions & 3 deletions buildSrc/src/main/kotlin/kotest-native-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ kotlin {
macosX64()
macosArm64()

tvos()
tvosX64()
tvosArm64()
tvosSimulatorArm64()

watchosArm32()
Expand Down Expand Up @@ -56,7 +57,8 @@ kotlin {
val watchosX64Main by getting { dependsOn(desktopMain) }
val watchosSimulatorArm64Main by getting { dependsOn(desktopMain) }

val tvosMain by getting { dependsOn(desktopMain) }
val tvosX64Main by getting { dependsOn(desktopMain) }
val tvosArm64Main by getting { dependsOn(desktopMain) }
val tvosSimulatorArm64Main by getting { dependsOn(desktopMain) }

// Test sourcesets
Expand All @@ -83,7 +85,8 @@ kotlin {
val watchosX64Test by getting { dependsOn(nativeTest) }
val watchosSimulatorArm64Test by getting { dependsOn(nativeTest) }

val tvosTest by getting { dependsOn(nativeTest) }
val tvosX64Test by getting { dependsOn(nativeTest) }
val tvosArm64Test by getting { dependsOn(nativeTest) }
val tvosSimulatorArm64Test by getting { dependsOn(nativeTest) }
}
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@file:Suppress("UNUSED_VARIABLE")

plugins {
id("kotlin-conventions")
}

kotlin {
if (!project.hasProperty(Ci.JVM_ONLY)) {
watchosDeviceArm64()
sourceSets {

// Main source sets
val commonMain by getting {}
val desktopMain by getting { dependsOn(commonMain) }
val watchosDeviceArm64Main by getting { dependsOn(desktopMain) }

// Test sourcesets
val commonTest by getting
val nativeTest by getting { dependsOn(commonTest) }
val watchosDeviceArm64Test by getting { dependsOn(nativeTest) }
}
} else {
// Make sure every project has at least one valid target, otherwise Kotlin compiler will complain
jvm()
}
}
2 changes: 2 additions & 0 deletions kotest-assertions/kotest-assertions-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}
2 changes: 2 additions & 0 deletions kotest-assertions/kotest-assertions-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-assertions/kotest-assertions-shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-framework/kotest-framework-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-framework/kotest-framework-datatest/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-framework/kotest-framework-engine/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions kotest-property/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("kotest-multiplatform-library-conventions")
id("kotest-android-native-conventions")
id("kotest-watchos-device-conventions")
}

kotlin {
Expand Down

0 comments on commit 176da42

Please sign in to comment.