mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[build scripts] dropping tests from FullUpdaterBuildTarget
(they go to per-OS build configurations) GitOrigin-RevId: 323e2fd3f66c9421da9bf2c9ff75fb88168fb4e7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d1f31f29e3
commit
e3f561888b
@@ -1,10 +1,10 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
|
||||
import com.intellij.platform.diagnostic.telemetry.helpers.useWithScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.jetbrains.intellij.build.*
|
||||
import org.jetbrains.intellij.build.TraceManager.spanBuilder
|
||||
import org.jetbrains.intellij.build.BuildTasks
|
||||
import org.jetbrains.intellij.build.IdeaProjectLoaderUtil
|
||||
import org.jetbrains.intellij.build.createCommunityBuildContext
|
||||
|
||||
object FullUpdaterBuildTarget {
|
||||
private const val UPDATER_MODULE_NAME = "intellij.platform.updater"
|
||||
@@ -12,21 +12,10 @@ object FullUpdaterBuildTarget {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
val context = createCommunityBuildContext(IdeaProjectLoaderUtil.guessCommunityHome(javaClass))
|
||||
|
||||
spanBuilder("build updater artifact").useWithScope {
|
||||
val tasks = BuildTasks.create(context)
|
||||
tasks.compileModules(listOf(UPDATER_MODULE_NAME))
|
||||
runBlocking(Dispatchers.Default) {
|
||||
tasks.buildFullUpdaterJar()
|
||||
}
|
||||
}
|
||||
|
||||
spanBuilder("test updater").useWithScope {
|
||||
val options = TestingOptions()
|
||||
options.testGroups = "UPDATER_TESTS"
|
||||
options.mainModule = UPDATER_MODULE_NAME
|
||||
TestingTasks.create(context, options)
|
||||
.runTests(listOf("-Dintellij.build.test.ignoreFirstAndLastTests=true"))
|
||||
val tasks = BuildTasks.create(context)
|
||||
tasks.compileModules(listOf(UPDATER_MODULE_NAME))
|
||||
runBlocking(Dispatchers.Default) {
|
||||
tasks.buildFullUpdaterJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user