-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from ihmcrobotics/feature/add-ihmc-ci-2
Move ihmc-ci to ihmc-build
- Loading branch information
Showing
26 changed files
with
1,136 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package us.ihmc.ci | ||
|
||
class AllocationInstrumenter(val version: String) | ||
{ | ||
fun instrumenter(): String = "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:$version" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package us.ihmc.ci | ||
|
||
import org.gradle.api.Project | ||
|
||
val ALLOCATION_AGENT_KEY = "allocationAgent" | ||
|
||
class IHMCCICategory(val name: String) | ||
{ | ||
var forkEvery = 0 // no limit | ||
var maxParallelForks = 1 // careful, cost of spawning JVMs is high | ||
var junit5ParallelEnabled = false // doesn't work right now with Gradle's test runner. See: https://github.com/gradle/gradle/issues/6453 | ||
var junit5ParallelStrategy = "fixed" | ||
var junit5ParallelFixedParallelism = 1 | ||
val excludeTags = hashSetOf<String>() | ||
val includeTags = hashSetOf<String>() | ||
val jvmProperties = hashMapOf<String, String>() | ||
val jvmArguments = hashSetOf<String>() | ||
var minHeapSizeGB = 1 | ||
var maxHeapSizeGB = 4 | ||
var enableAssertions = true | ||
var defaultTimeout = 1200 // 20 minutes | ||
var testTaskTimeout = 1800 // 30 minutes | ||
var doFirst: () -> Unit = {} // run user code when this category is selected | ||
} | ||
|
||
open class IHMCCICategoriesExtension(private val project: Project) | ||
{ | ||
val categories = hashMapOf<String, IHMCCICategory>() | ||
|
||
fun configure(name: String, configuration: IHMCCICategory.() -> Unit) | ||
{ | ||
configuration.invoke(configure(name)) | ||
} | ||
|
||
fun configure(name: String): IHMCCICategory | ||
{ | ||
val category = categories.getOrPut(name, { IHMCCICategory(name) }) | ||
if (name != "all" && name != "fast") // all require no includes or excludes, fast will be configured later | ||
{ | ||
category.includeTags += name // by default, include tags of the category name | ||
} | ||
|
||
return category | ||
} | ||
} |
Oops, something went wrong.