mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-05-04 02:03:07 +02:00
76 lines
2.0 KiB
Kotlin
76 lines
2.0 KiB
Kotlin
package _Self
|
|
|
|
import _Self.buildTypes.Compatibility
|
|
import _Self.buildTypes.LongRunning
|
|
import _Self.buildTypes.Nvim
|
|
import _Self.buildTypes.PluginVerifier
|
|
import _Self.buildTypes.PropertyBased
|
|
import _Self.buildTypes.RandomOrderTests
|
|
|
|
import _Self.buildTypes.TestingBuildType
|
|
import _Self.buildTypes.TypeScriptTest
|
|
import _Self.subprojects.Releases
|
|
import _Self.vcsRoots.ReleasesVcsRoot
|
|
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
|
|
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
|
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.buildCache
|
|
|
|
object Project : Project({
|
|
description = "Vim engine for JetBrains IDEs"
|
|
|
|
subProject(Releases)
|
|
|
|
// VCS roots
|
|
vcsRoot(ReleasesVcsRoot)
|
|
|
|
// Active tests
|
|
buildType(TestingBuildType("Latest EAP", version = "LATEST-EAP-SNAPSHOT"))
|
|
buildType(TestingBuildType("2025.3"))
|
|
|
|
buildType(PropertyBased)
|
|
buildType(LongRunning)
|
|
buildType(RandomOrderTests)
|
|
|
|
buildType(Nvim)
|
|
buildType(PluginVerifier)
|
|
buildType(Compatibility)
|
|
|
|
// TypeScript scripts test
|
|
buildType(TypeScriptTest)
|
|
})
|
|
|
|
// Agent size configurations (CPU count)
|
|
object AgentSize {
|
|
const val MEDIUM = "4"
|
|
const val XLARGE = "16"
|
|
}
|
|
|
|
// Common build type for all configurations
|
|
abstract class IdeaVimBuildType(init: BuildType.() -> Unit) : BuildType({
|
|
artifactRules = """
|
|
+:build/reports => build/reports
|
|
+:tests/java-tests/build/reports => java-tests/build/reports
|
|
+:tests/long-running-tests/build/reports => long-running-tests/build/reports
|
|
+:tests/property-tests/build/reports => property-tests/build/reports
|
|
+:/mnt/agent/temp/buildTmp/ => /mnt/agent/temp/buildTmp/
|
|
""".trimIndent()
|
|
|
|
features {
|
|
buildCache {
|
|
name = "Gradle-cache"
|
|
rules = """
|
|
%env.HOME%/.gradle/caches
|
|
%env.HOME%/.gradle/wrapper
|
|
""".trimIndent()
|
|
publish = true
|
|
use = true
|
|
}
|
|
}
|
|
|
|
init()
|
|
|
|
failureConditions {
|
|
// Disable detection of the java OOM
|
|
javaCrash = false
|
|
}
|
|
}) |