Add docs and lifecycle tasks for faster dev builds (#2182)

This commit is contained in:
Thad House
2019-12-20 13:48:26 -08:00
committed by Peter Johnson
parent ea4d1a39e1
commit 5e08bb28f8
9 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
model {
tasks {
def ts = $.testSuites
project.tasks.register('testDesktopCpp') { testTask->
def systemArch = getCurrentArch()
def found = false
ts.each {
if (it in GoogleTestTestSuiteSpec && it.name == "${nativeName}Test") {
it.binaries.each {
if (found) return
def arch = it.targetPlatform.name
if (arch == systemArch && it.buildType.name == 'debug') {
testTask.dependsOn it.tasks.run
found = true
}
}
}
}
}
}
}