From e3f561888b50f453d4bb3e3d60e21fb295a63acf Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 1 Sep 2023 22:30:23 +0200 Subject: [PATCH] [build scripts] dropping tests from `FullUpdaterBuildTarget` (they go to per-OS build configurations) GitOrigin-RevId: 323e2fd3f66c9421da9bf2c9ff75fb88168fb4e7 --- build/src/FullUpdaterBuildTarget.kt | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/build/src/FullUpdaterBuildTarget.kt b/build/src/FullUpdaterBuildTarget.kt index 010890003ef2..2447ceed2e9c 100644 --- a/build/src/FullUpdaterBuildTarget.kt +++ b/build/src/FullUpdaterBuildTarget.kt @@ -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) { 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() } } }