mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-18 05:02:24 +08:00
Apply patches
This commit is contained in:
parent
c55a585e40
commit
436de6d8ff
56
.teamcity/patches/buildTypes/Build.kts
vendored
56
.teamcity/patches/buildTypes/Build.kts
vendored
@ -1,56 +0,0 @@
|
||||
package patches.buildTypes
|
||||
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ScriptBuildStep
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
||||
|
||||
/*
|
||||
This patch script was generated by TeamCity on settings change in UI.
|
||||
To apply the patch, change the buildType with id = 'Build'
|
||||
accordingly, and delete the patch script.
|
||||
*/
|
||||
changeBuildType(RelativeId("Build")) {
|
||||
expectTemplates()
|
||||
templates = arrayListOf(RelativeId("Common"))
|
||||
|
||||
check(artifactRules == """
|
||||
+:**/dist/** => dist.tar.gz
|
||||
-:**/node_modules/** => dist.tar.gz
|
||||
""".trimIndent()) {
|
||||
"Unexpected option value: artifactRules = $artifactRules"
|
||||
}
|
||||
artifactRules = ""
|
||||
|
||||
params {
|
||||
add {
|
||||
param("script", """
|
||||
yarn install
|
||||
yarn repo-dirty-check
|
||||
yarn bootstrap --core
|
||||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
|
||||
vcs {
|
||||
remove(DslContext.settingsRoot.id!!)
|
||||
}
|
||||
|
||||
expectSteps {
|
||||
script {
|
||||
scriptContent = """
|
||||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
yarn install
|
||||
yarn repo-dirty-check
|
||||
yarn bootstrap --core
|
||||
""".trimIndent()
|
||||
dockerImage = "node:lts"
|
||||
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
|
||||
}
|
||||
}
|
||||
steps {
|
||||
items.removeAt(0)
|
||||
}
|
||||
}
|
15
.teamcity/patches/projects/_Self.kts
vendored
15
.teamcity/patches/projects/_Self.kts
vendored
@ -1,15 +0,0 @@
|
||||
package patches.projects
|
||||
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
||||
|
||||
/*
|
||||
This patch script was generated by TeamCity on settings change in UI.
|
||||
To apply the patch, change the root project
|
||||
accordingly, and delete the patch script.
|
||||
*/
|
||||
changeProject(DslContext.projectId) {
|
||||
expectDefaultTemplate(null)
|
||||
defaultTemplate = RelativeId("Common")
|
||||
}
|
36
.teamcity/patches/templates/Common.kts
vendored
36
.teamcity/patches/templates/Common.kts
vendored
@ -1,36 +0,0 @@
|
||||
package patches.templates
|
||||
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.Template
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ScriptBuildStep
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
|
||||
|
||||
/*
|
||||
This patch script was generated by TeamCity on settings change in UI.
|
||||
To apply the patch, create a template with id = 'Common'
|
||||
in the root project, and delete the patch script.
|
||||
*/
|
||||
create(DslContext.projectId, Template({
|
||||
id("Common")
|
||||
name = "Common"
|
||||
|
||||
vcs {
|
||||
root(DslContext.settingsRoot)
|
||||
}
|
||||
|
||||
steps {
|
||||
script {
|
||||
id = "RUNNER_1"
|
||||
scriptContent = """
|
||||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
%script%
|
||||
""".trimIndent()
|
||||
dockerImage = "node:lts"
|
||||
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
58
.teamcity/settings.kts
vendored
58
.teamcity/settings.kts
vendored
@ -2,6 +2,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.*
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ScriptBuildStep
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.projectFeatures.githubConnection
|
||||
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.add
|
||||
|
||||
/*
|
||||
The settings script is an entry point for defining a TeamCity
|
||||
@ -28,8 +29,17 @@ To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View
|
||||
version = "2019.2"
|
||||
|
||||
project {
|
||||
defaultTemplate = Common
|
||||
|
||||
buildType(Build)
|
||||
|
||||
sequential {
|
||||
buildType(Build)
|
||||
parallel {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
features {
|
||||
githubConnection {
|
||||
id = "PROJECT_EXT_6"
|
||||
@ -40,6 +50,31 @@ project {
|
||||
}
|
||||
}
|
||||
|
||||
object Common: Template({
|
||||
name = "Common"
|
||||
|
||||
vcs {
|
||||
root(DslContext.settingsRoot)
|
||||
}
|
||||
})
|
||||
|
||||
var BuildType.script: String
|
||||
get() = ""
|
||||
set(value) {
|
||||
steps {
|
||||
script {
|
||||
scriptContent = """
|
||||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
$value
|
||||
""".trimIndent()
|
||||
dockerImage = "node:lts"
|
||||
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object Build : BuildType({
|
||||
name = "Build"
|
||||
|
||||
@ -48,22 +83,9 @@ object Build : BuildType({
|
||||
-:**/node_modules/** => dist.tar.gz
|
||||
""".trimIndent()
|
||||
|
||||
vcs {
|
||||
root(DslContext.settingsRoot)
|
||||
}
|
||||
|
||||
steps {
|
||||
script {
|
||||
scriptContent = """
|
||||
#!/bin/bash
|
||||
set -e -x
|
||||
|
||||
yarn install
|
||||
yarn repo-dirty-check
|
||||
yarn bootstrap --core
|
||||
""".trimIndent()
|
||||
dockerImage = "node:lts"
|
||||
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
|
||||
}
|
||||
}
|
||||
script = """
|
||||
yarn install
|
||||
yarn repo-dirty-check
|
||||
yarn bootstrap --core
|
||||
""".trimIndent()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user