Skip to content

Commit

Permalink
add ./gradlew ctng and ./gradlew ctg (#5380)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Nov 17, 2023
1 parent 625f84e commit 5225f75
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import JapiCmp.configureJapiCmp
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeHostTest

plugins {
id("build.logic") apply false
Expand Down Expand Up @@ -77,7 +78,7 @@ tasks.register("ciTestsNoGradle") {
}
dependsOn(tasks.matching { it.name == "jvmTest" })
dependsOn(tasks.matching { it.name == "jsIrTest" })
dependsOn(tasks.matching { it.name == "macosX64Test" })
dependsOn(tasks.withType(KotlinNativeHostTest::class.java))
dependsOn(tasks.matching { it.name == "apiCheck" })
}

Expand All @@ -90,10 +91,22 @@ tasks.register("ciTestsNoGradle") {
dependsOn(":apollo-normalized-cache-sqlite-incubating:generateCommonMainBlob2DatabaseSchema")

doLast {
checkGitStatus()
if (isCIBuild()) {
checkGitStatus()
}
}
}

/**
* Shorthands for less typing during development
*/
tasks.register("ctng") {
dependsOn("ciTestsNoGradle")
}
tasks.register("ctg") {
dependsOn("ciTestsGradle")
}

val ciBuild = tasks.register("ciBuild") {
description = "Execute the 'build' task in each subproject"
dependsOn(subprojectTasks("build"))
Expand Down

0 comments on commit 5225f75

Please sign in to comment.