forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FullUpdaterBuildTarget.kt
28 lines (23 loc) · 1.01 KB
/
FullUpdaterBuildTarget.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
import com.intellij.diagnostic.telemetry.useWithScope
import org.jetbrains.intellij.build.*
import org.jetbrains.intellij.build.TraceManager.spanBuilder
object FullUpdaterBuildTarget {
private const val UPDATER_MODULE_NAME = "intellij.platform.updater"
@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))
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"))
}
}
}