From efa66425ad771dd64fd975a23042eb2b91d2b628 Mon Sep 17 00:00:00 2001 From: Hypnosphi Date: Tue, 28 May 2019 22:35:22 +0200 Subject: [PATCH] Remove TeamCity configs --- .github/CODEOWNERS | 1 - .../OpenSourceProjects_Storybook/Project.kt | 197 ------------------ .../OpenSourceProjects_Storybook_Bootstrap.kt | 80 ------- .../OpenSourceProjects_Storybook_Build_2.kt | 115 ---------- .../OpenSourceProjects_Storybook_Chromatic.kt | 77 ------- ...urceProjects_Storybook_CliTestLatestCra.kt | 82 -------- .../OpenSourceProjects_Storybook_Docs.kt | 58 ------ .../OpenSourceProjects_Storybook_Examples.kt | 112 ---------- .../OpenSourceProjects_Storybook_Lint.kt | 77 ------- ...nSourceProjects_Storybook_Lint_Warnings.kt | 92 -------- ...OpenSourceProjects_Storybook_SmokeTests.kt | 80 ------- .../OpenSourceProjects_Storybook_Test.kt | 65 ------ .../buildTypes/StorybookApp.kt | 103 --------- .../1bda59b5-d08d-4fd8-b317-953e7d79d881.kts | 16 -- .../1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6.kts | 16 -- .../2b9c73e2-0a6e-47ca-95ae-729cac42be2b.kts | 16 -- .../42cfbb9a-f35b-4f96-afae-0b508927a737.kts | 16 -- .../42cfbb9a-f35b-4f96-afae-0b508927a738.kts | 16 -- ...47-4ca7-4f0d-940d-b0c422f501a6-angular.kts | 16 -- ...-4ca7-4f0d-940d-b0c422f501a6-chromatic.kts | 16 -- ...c5f747-4ca7-4f0d-940d-b0c422f501a6-cra.kts | 16 -- ...ca7-4f0d-940d-b0c422f501a6-cra_react15.kts | 16 -- ...747-4ca7-4f0d-940d-b0c422f501a6-cra_ts.kts | 16 -- ...f747-4ca7-4f0d-940d-b0c422f501a6-ember.kts | 16 -- ...5f747-4ca7-4f0d-940d-b0c422f501a6-html.kts | 16 -- ...f747-4ca7-4f0d-940d-b0c422f501a6-marko.kts | 16 -- ...47-4ca7-4f0d-940d-b0c422f501a6-mithril.kts | 16 -- ...47-4ca7-4f0d-940d-b0c422f501a6-polymer.kts | 16 -- ...747-4ca7-4f0d-940d-b0c422f501a6-preact.kts | 16 -- ...5f747-4ca7-4f0d-940d-b0c422f501a6-riot.kts | 16 -- ...747-4ca7-4f0d-940d-b0c422f501a6-svelte.kts | 16 -- ...c5f747-4ca7-4f0d-940d-b0c422f501a6-vue.kts | 16 -- .../8cc5f747-4ca7-4f0d-940d-b0c422f501a6.kts | 16 -- .../9f9177e7-9ec9-4e2e-aabb-d304fd667711.kts | 22 -- .../9f9177e7-9ec9-4e2e-aabb-d304fd667712.kts | 16 -- .../d4320bd8-6094-4dd6-9bed-e13d6f0d12e2.kts | 16 -- .../69382d9b-7791-418a-9ff6-1c83b86ed6b5.kts | 17 -- .../OpenSourceProjects_Storybook/settings.kts | 35 ---- ...ubComStorybooksStorybookRefsHeadsMaster.kt | 20 -- ...bComStorybooksStorybookRefsHeadsMaster1.kt | 16 -- .teamcity/pom.xml | 104 --------- README.md | 1 - lib/cli/test/run_tests.sh | 21 +- package.json | 6 - scripts/test.js | 6 - yarn.lock | 12 -- 46 files changed, 2 insertions(+), 1749 deletions(-) delete mode 100644 .teamcity/OpenSourceProjects_Storybook/Project.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Bootstrap.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Build_2.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Chromatic.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliTestLatestCra.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Docs.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Examples.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_SmokeTests.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Test.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/buildTypes/StorybookApp.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1bda59b5-d08d-4fd8-b317-953e7d79d881.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/2b9c73e2-0a6e-47ca-95ae-729cac42be2b.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a737.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a738.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667711.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667712.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/buildTypes/d4320bd8-6094-4dd6-9bed-e13d6f0d12e2.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/patches/projects/69382d9b-7791-418a-9ff6-1c83b86ed6b5.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/settings.kts delete mode 100644 .teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster.kt delete mode 100644 .teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1.kt delete mode 100644 .teamcity/pom.xml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1b68ff92d45..81169f1382f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,4 @@ .circleci/ @ndelangen -.teamcity/ @hypnosphi .github/ @danielduan /addons/a11y/ @jbovenschen @codebyalex diff --git a/.teamcity/OpenSourceProjects_Storybook/Project.kt b/.teamcity/OpenSourceProjects_Storybook/Project.kt deleted file mode 100644 index 1f3a5f29ea2..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/Project.kt +++ /dev/null @@ -1,197 +0,0 @@ -package OpenSourceProjects_Storybook - -import OpenSourceProjects_Storybook.buildTypes.* -import OpenSourceProjects_Storybook.vcsRoots.* -import OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.Project -import jetbrains.buildServer.configs.kotlin.v2017_2.projectFeatures.VersionedSettings -import jetbrains.buildServer.configs.kotlin.v2017_2.projectFeatures.versionedSettings - -object Project : Project({ - uuid = "69382d9b-7791-418a-9ff6-1c83b86ed6b5" - id = "OpenSourceProjects_Storybook" - parentId = "OpenSourceProjects" - name = "Storybook" - description = "https://storybook.js.org/" - - vcsRoot(OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1) - vcsRoot(OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - buildType(OpenSourceProjects_Storybook_Bootstrap) - buildType(OpenSourceProjects_Storybook_CliTestLatestCra) - buildType(OpenSourceProjects_Storybook_Examples) - buildType(OpenSourceProjects_Storybook_Docs) - buildType(OpenSourceProjects_Storybook_Build_2) - buildType(OpenSourceProjects_Storybook_Test) - buildType(OpenSourceProjects_Storybook_Lint) - buildType(OpenSourceProjects_Storybook_Lint_Warnings) - buildType(OpenSourceProjects_Storybook_SmokeTests) - buildType(OpenSourceProjects_Storybook_Chromatic) - - allApps { - buildType(config) - } - - features { - versionedSettings { - id = "PROJECT_EXT_258" - mode = VersionedSettings.Mode.ENABLED - buildSettingsMode = VersionedSettings.BuildSettingsMode.PREFER_SETTINGS_FROM_VCS - rootExtId = OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster.id - showChanges = true - settingsFormat = VersionedSettings.Format.KOTLIN - storeSecureParamsOutsideOfVcs = true - } - feature { - type = "buildtype-graphs" - id = "PROJECT_EXT_132" - param("series", """ - [ - { - "type": "valueType", - "title": "Build Duration (all stages)", - "key": "BuildDuration" - } - ] - """.trimIndent()) - param("format", "duration") - param("hideFilters", "") - param("title", "Build Duration") - param("defaultFilters", "") - param("seriesTitle", "Serie") - } - feature { - id = "PROJECT_EXT_259" - type = "IssueTracker" - param("secure:password", "") - param("name", "storybooks/storybook") - param("pattern", """#(\d+)""") - param("authType", "anonymous") - param("repository", "https://github.com/storybooks/storybook") - param("type", "GithubIssues") - param("secure:accessToken", "") - param("username", "") - } - allApps { - feature { - id = "PROJECT_EXT_264_$lowerName" - type = "ReportTab" - param("startPage", "$lowerName.zip!index.html") - param("title", appName) - param("type", "BuildReportTab") - } - } - feature { - id = "PROJECT_EXT_267" - type = "ReportTab" - param("startPage", "official.zip!index.html") - param("title", "Official") - param("type", "BuildReportTab") - } - feature { - type = "ReportTab" - id = "PROJECT_EXT_272" - param("startPage", "docs.zip!index.html") - param("title", "Docs") - param("type", "BuildReportTab") - } - feature { - type = "ReportTab" - id = "PROJECT_EXT_274" - param("startPage", "demo.zip!index.html") - param("title", "Demo") - param("type", "BuildReportTab") - } - feature { - type = "project-graphs" - id = "PROJECT_EXT_306" - param("series", """ - [ - { - "type": "valueType", - "title": "Build Duration (all stages)", - "sourceBuildTypeId": "OpenSourceProjects_Storybook_Build_2", - "key": "BuildDuration" - } - ] - """.trimIndent()) - param("format", "duration") - param("seriesTitle", "Serie") - param("hideFilters", "") - param("title", "Build Duration (all stages)") - param("defaultFilters", "") - } - feature { - type = "project-graphs" - id = "PROJECT_EXT_307" - param("series", """ - [ - { - "type": "valueType", - "title": "Covered Percentage of JS Lines", - "sourceBuildTypeId": "OpenSourceProjects_Storybook_Test", - "key": "Covered Percentage of JS Lines" - } - ] - """.trimIndent()) - param("format", "percent") - param("hideFilters", "") - param("title", "Covered Percentage of JS Lines") - param("defaultFilters", "") - param("seriesTitle", "Serie") - } - feature { - type = "project-graphs" - id = "PROJECT_EXT_308" - param("series", """ - [ - { - "type": "valueType", - "title": "Total Number of JS Statements", - "sourceBuildTypeId": "OpenSourceProjects_Storybook_Test", - "key": "Total Number of JS Statements" - } - ] - """.trimIndent()) - param("format", "integer") - param("seriesTitle", "Serie") - param("hideFilters", "") - param("title", "Total Number of JS Statements") - param("defaultFilters", "") - } - feature { - type = "project-graphs" - id = "PROJECT_EXT_117" - param("series", """ - [ - { - "type": "valueType", - "title": "Total Artifacts Size", - "sourceBuildTypeId": "OpenSourceProjects_Storybook_CliTestLatestCra", - "key": "ArtifactsSize" - } - ] - """.trimIndent()) - param("format", "text") - param("title", "Total Artifacts Size") - param("seriesTitle", "Serie") - } - feature { - type = "Invitation" - id = "PROJECT_EXT_209" - param("createdByUserId", "1702") - param("invitationType", "joinProjectInvitation") - param("secure:token", "credentialsJSON:07400f1b-a51d-46ae-b056-2e24a653f4d1") - param("name", "Join Storybook project") - param("welcomeText", "Filipp Riabchun invites you to join the Storybook project") - param("disabled", "false") - param("groupKey", "STORYBOOK_DEVELO") - param("multi", "true") - } - } - - params { - param("docker.node.version", "dubnium") - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Bootstrap.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Bootstrap.kt deleted file mode 100644 index f609d196a3e..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Bootstrap.kt +++ /dev/null @@ -1,80 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.retryBuild -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.VcsTrigger - -object OpenSourceProjects_Storybook_Bootstrap : BuildType({ - uuid = "9f9177e7-9ec9-4e2e-aabb-d304fd667712" - id = "OpenSourceProjects_Storybook_Bootstrap" - name = "Bootstrap" - - artifactRules = """ - addons/*/dist/** => dist.zip/addons - addons/storyshots/*/dist/** => dist.zip/addons/storyshots - app/*/dist/** => dist.zip/app - lib/*/dist/** => dist.zip/lib - lib/core/dll/** => dist.zip/lib/core/dll - """.trimIndent() - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - } - - steps { - script { - name = "Bootstrap" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - yarn bootstrap --core - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT - triggerRules = "-:comment=^TeamCity change:**" - branchFilter = """ - +:pull/* - +:release/* - +:master - +:next - +:snyk-fix-* - """.trimIndent() - enabled = false - } - retryBuild { - delaySeconds = 60 - enabled = false - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Build_2.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Build_2.kt deleted file mode 100644 index 1502deb7ae5..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Build_2.kt +++ /dev/null @@ -1,115 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.VcsTrigger -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.finishBuildTrigger -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.retryBuild -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.merge -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -object OpenSourceProjects_Storybook_Build_2 : BuildType({ - uuid = "2b9c73e2-0a6e-47ca-95ae-729cac42be2b" - id = "OpenSourceProjects_Storybook_Build_2" - name = "Build" - - allowExternalStatus = true - type = BuildTypeSettings.Type.COMPOSITE - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - showDependenciesChanges = true - } - - triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT - triggerRules = "-:comment=^TeamCity change:**" - branchFilter = """ - +:pull/* - +:release/* - +:master - +:next - +:snyk-fix-* - """.trimIndent() - } - retryBuild { - delaySeconds = 60 - enabled = false - } - finishBuildTrigger { - enabled = false - buildTypeExtId = "OpenSourceProjects_Storybook_Bootstrap" - successfulOnly = true - branchFilter = "" - } - } - - failureConditions { - failOnMetricChange { - metric = BuildFailureOnMetric.MetricType.TEST_COUNT - threshold = 20 - units = BuildFailureOnMetric.MetricUnit.PERCENTS - comparison = BuildFailureOnMetric.MetricComparison.LESS - compareTo = build { - buildRule = lastSuccessful() - } - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - merge { - branchFilter = """ - +:snyk-fix-* - """.trimIndent() - destinationBranch = "" - commitMessage = "Merge branch '%teamcity.build.branch%'" - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Docs) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Examples) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Lint) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_SmokeTests) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Test) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Chromatic) { - snapshot { - onDependencyCancel = FailureAction.ADD_PROBLEM - } - } - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Chromatic.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Chromatic.kt deleted file mode 100644 index b267b04efc0..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Chromatic.kt +++ /dev/null @@ -1,77 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange - -object OpenSourceProjects_Storybook_Chromatic : BuildType({ - uuid = "8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic" - id = "OpenSourceProjects_Storybook_Chromatic" - name = "Chromatic" - - params { - param("env.CI_BRANCH", "%teamcity.build.branch%") - } - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Chromatic" - scriptContent = """ - #!/bin/sh - - # set -e -x - # yarn - # yarn chromatic - echo "chromatic moved to cirlce CI" - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - allApps { - dependency(config) { - snapshot {} - - if (merged) { - artifacts { - cleanDestination = true - artifactRules = "$lowerName.zip!** => examples/$exampleDir/storybook-static" - } - } - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliTestLatestCra.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliTestLatestCra.kt deleted file mode 100644 index 83df8e13baa..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliTestLatestCra.kt +++ /dev/null @@ -1,82 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.retryBuild -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.VcsTrigger - -object OpenSourceProjects_Storybook_CliTestLatestCra : BuildType({ - uuid = "d4320bd8-6094-4dd6-9bed-e13d6f0d12e2" - id = "OpenSourceProjects_Storybook_CliTestLatestCra" - name = "CLI test, latest CRA" - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Test" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - yarn test-latest-cra -t - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT - triggerRules = "-:comment=^TeamCity change:**" - branchFilter = """ - +:pull/* - +:release/* - +:master - +:next - """.trimIndent() - } - retryBuild { - enabled = false - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Docs.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Docs.kt deleted file mode 100644 index 1cdeae3aac7..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Docs.kt +++ /dev/null @@ -1,58 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script - -object OpenSourceProjects_Storybook_Docs : BuildType({ - uuid = "1bda59b5-d08d-4fd8-b317-953e7d79d881" - id = "OpenSourceProjects_Storybook_Docs" - name = "Docs" - - artifactRules = "docs/public => docs.zip" - - params { - param("Deploy branch", "master") - } - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Build" - workingDir = "docs" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn --frozen-lockfile - yarn build - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Examples.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Examples.kt deleted file mode 100644 index 2fe164bb30e..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Examples.kt +++ /dev/null @@ -1,112 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange - -object OpenSourceProjects_Storybook_Examples : BuildType({ - uuid = "8cc5f747-4ca7-4f0d-940d-b0c422f501a6" - id = "OpenSourceProjects_Storybook_Examples" - name = "Examples" - - artifactRules = """ - ${StorybookApp.values().map { it.artifactPath }.joinToString("\n")} - examples/official-storybook/storybook-static => official.zip - examples/official-storybook/image-snapshots/__image_snapshots__ => image-snapshots - """.trimIndent() - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "official-storybook" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - cd examples/official-storybook - rm -rf storybook-static - yarn build-storybook - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - script { - name = "Image storyshots" - scriptContent = """ - #!/bin/sh - - set -e -x - - # Workaround for https://github.com/GoogleChrome/puppeteer/issues/290 - - apt-get update - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ - libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ - libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \ - libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ - ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget - yarn test --image --teamcity - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - failureConditions { - failOnMetricChange { - metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE - threshold = 60 - units = BuildFailureOnMetric.MetricUnit.PERCENTS - comparison = BuildFailureOnMetric.MetricComparison.LESS - compareTo = build { - buildRule = lastSuccessful() - } - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - allApps { - dependency(config) { - snapshot {} - - if (merged) { - artifacts { - cleanDestination = true - artifactRules = "$lowerName.zip!** => examples/$exampleDir/storybook-static" - } - } - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint.kt deleted file mode 100644 index 11d5b073adb..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint.kt +++ /dev/null @@ -1,77 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange - -object OpenSourceProjects_Storybook_Lint : BuildType({ - uuid = "42cfbb9a-f35b-4f96-afae-0b508927a737" - id = "OpenSourceProjects_Storybook_Lint" - name = "Lint" - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Lint" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - yarn bootstrap --docs - yarn lint:ci - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } - - failureConditions { - failOnMetricChange { - metric = BuildFailureOnMetric.MetricType.INSPECTION_ERROR_COUNT - threshold = 0 - units = BuildFailureOnMetric.MetricUnit.DEFAULT_UNIT - comparison = BuildFailureOnMetric.MetricComparison.MORE - compareTo = value() - param("anchorBuild", "lastSuccessful") - } - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt deleted file mode 100644 index fc87770b518..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt +++ /dev/null @@ -1,92 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange -import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.VcsTrigger - -object OpenSourceProjects_Storybook_Lint_Warnings : BuildType({ - uuid = "42cfbb9a-f35b-4f96-afae-0b508927a738" - id = "OpenSourceProjects_Storybook_Lint_Warnings" - name = "Lint Warnings" - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Lint" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - yarn bootstrap --docs - yarn lint:ci - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.USE_DEFAULT - triggerRules = "-:comment=^TeamCity change:**" - branchFilter = """ - +:pull/* - +:release/* - +:master - +:next - """.trimIndent() - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } - - failureConditions { - failOnMetricChange { - metric = BuildFailureOnMetric.MetricType.INSPECTION_WARN_COUNT - threshold = 0 - units = BuildFailureOnMetric.MetricUnit.DEFAULT_UNIT - comparison = BuildFailureOnMetric.MetricComparison.MORE - compareTo = value() - param("anchorBuild", "lastSuccessful") - } - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_SmokeTests.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_SmokeTests.kt deleted file mode 100644 index 377397880bc..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_SmokeTests.kt +++ /dev/null @@ -1,80 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script - -object OpenSourceProjects_Storybook_SmokeTests : BuildType({ - uuid = "1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6" - id = "OpenSourceProjects_Storybook_SmokeTests" - name = "Smoke tests" - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Install" - scriptContent = "yarn" - dockerImage = "node:%docker.node.version%" - } - allApps { - if (merged) { - script { - name = appName - scriptContent = """ - #!/bin/sh - - set -e -x - - cd examples/$exampleDir - yarn storybook --smoke-test --quiet - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - } - script { - name = "official-storybook" - scriptContent = """ - #!/bin/sh - - set -e -x - - cd examples/official-storybook - yarn storybook --smoke-test --quiet - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Test.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Test.kt deleted file mode 100644 index cb2cae95fd9..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Test.kt +++ /dev/null @@ -1,65 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script - -object OpenSourceProjects_Storybook_Test : BuildType({ - uuid = "9f9177e7-9ec9-4e2e-aabb-d304fd667711" - id = "OpenSourceProjects_Storybook_Test" - name = "Test" - - artifactRules = "coverage/lcov-report => coverage.zip" - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - - } - - steps { - script { - name = "Test" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - yarn test --core --coverage --teamcity --w2 - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = "dist.zip!**" - } - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - - cleanup { - artifacts(days = 1) - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/StorybookApp.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/StorybookApp.kt deleted file mode 100644 index a64fd61d6a3..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/StorybookApp.kt +++ /dev/null @@ -1,103 +0,0 @@ -package OpenSourceProjects_Storybook.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher -import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.BuildFailureOnMetric -import jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions.failOnMetricChange - -enum class StorybookApp(val appName: String, val exampleDir: String, val merged: Boolean = true) { - CRA("CRA", "cra-kitchen-sink"), - CRA_TS("CRA TS", "cra-ts-kitchen-sink"), - CRA_REACT15("CRA REACT15", "cra-react15"), - VUE("Vue", "vue-kitchen-sink"), - ANGULAR("Angular", "angular-cli"), - POLYMER("Polymer", "polymer-cli"), - MITHRIL("Mithril", "mithril-kitchen-sink"), - HTML("HTML", "html-kitchen-sink"), - MARKO("Marko", "marko-cli"), - SVELTE("Svelte", "svelte-kitchen-sink"), - RIOT("Riot", "riot-kitchen-sink"), - EMBER("Ember", "ember-cli"), - PREACT("Preact", "preact-kitchen-sink", false); - - val underscoreName = appName.replace(' ', '_') - val lowerName = underscoreName.toLowerCase() - - val artifactPath = "examples/$exampleDir/storybook-static => $lowerName.zip" - - val config = object : BuildType(init@{ - uuid = "8cc5f747-4ca7-4f0d-940d-b0c422f501a6-$lowerName" - id = "OpenSourceProjects_Storybook_$underscoreName" - name = appName - - vcs { - root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster) - } - - dependencies { - dependency(OpenSourceProjects_Storybook.buildTypes.OpenSourceProjects_Storybook_Bootstrap) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - } - - artifacts { - artifactRules = """ - dist.zip!** - """.trimIndent() - } - } - } - - if (!merged) return@init - - artifactRules = artifactPath - - steps { - script { - name = "build" - scriptContent = """ - #!/bin/sh - - set -e -x - - yarn - cd examples/$exampleDir - yarn build-storybook - """.trimIndent() - dockerImage = "node:%docker.node.version%" - } - } - - failureConditions { - failOnMetricChange { - metric = BuildFailureOnMetric.MetricType.ARTIFACT_SIZE - threshold = 50 - units = BuildFailureOnMetric.MetricUnit.PERCENTS - comparison = BuildFailureOnMetric.MetricComparison.LESS - compareTo = build { - buildRule = lastSuccessful() - } - } - } - - features { - commitStatusPublisher { - publisher = github { - githubUrl = "https://api.github.com" - authType = personalToken { - token = "credentialsJSON:5ffe2d7e-531e-4f6f-b1fc-a41bfea26eaa" - } - } - param("github_oauth_user", "Hypnosphi") - } - } - - requirements { - doesNotContain("env.OS", "Windows") - } - }) {} -} - -fun allApps(handler: StorybookApp.() -> Unit) = - StorybookApp.values().forEach { it.handler() } diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1bda59b5-d08d-4fd8-b317-953e7d79d881.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1bda59b5-d08d-4fd8-b317-953e7d79d881.kts deleted file mode 100644 index 6d597e5164e..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1bda59b5-d08d-4fd8-b317-953e7d79d881.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '1bda59b5-d08d-4fd8-b317-953e7d79d881' (id = 'OpenSourceProjects_Storybook_Docs') -accordingly, and delete the patch script. -*/ -changeBuildType("1bda59b5-d08d-4fd8-b317-953e7d79d881") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6.kts deleted file mode 100644 index 4b5795b0d56..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6' (id = 'OpenSourceProjects_Storybook_SmokeTests') -accordingly, and delete the patch script. -*/ -changeBuildType("1ea2b5bd-28f6-44f5-8ab3-6c659ce8fbd6") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/2b9c73e2-0a6e-47ca-95ae-729cac42be2b.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/2b9c73e2-0a6e-47ca-95ae-729cac42be2b.kts deleted file mode 100644 index aef79086061..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/2b9c73e2-0a6e-47ca-95ae-729cac42be2b.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '2b9c73e2-0a6e-47ca-95ae-729cac42be2b' (id = 'OpenSourceProjects_Storybook_Build_2') -accordingly, and delete the patch script. -*/ -changeBuildType("2b9c73e2-0a6e-47ca-95ae-729cac42be2b") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a737.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a737.kts deleted file mode 100644 index 5b232f2b680..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a737.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '42cfbb9a-f35b-4f96-afae-0b508927a737' (id = 'OpenSourceProjects_Storybook_Lint') -accordingly, and delete the patch script. -*/ -changeBuildType("42cfbb9a-f35b-4f96-afae-0b508927a737") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a738.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a738.kts deleted file mode 100644 index 92732846859..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/42cfbb9a-f35b-4f96-afae-0b508927a738.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '42cfbb9a-f35b-4f96-afae-0b508927a738' (id = 'OpenSourceProjects_Storybook_Lint_Warnings') -accordingly, and delete the patch script. -*/ -changeBuildType("42cfbb9a-f35b-4f96-afae-0b508927a738") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular.kts deleted file mode 100644 index a9c7f349050..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular' (id = 'OpenSourceProjects_Storybook_Angular') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-angular") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic.kts deleted file mode 100644 index 8d0deb7df10..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic' (id = 'OpenSourceProjects_Storybook_Chromatic') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-chromatic") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra.kts deleted file mode 100644 index 4c072da0e31..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra' (id = 'OpenSourceProjects_Storybook_CRA') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15.kts deleted file mode 100644 index 0ea4f527f63..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15' (id = 'OpenSourceProjects_Storybook_CRA_REACT15') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_react15") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts.kts deleted file mode 100644 index a508334eb45..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts' (id = 'OpenSourceProjects_Storybook_CRA_TS') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-cra_ts") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember.kts deleted file mode 100644 index ab0514e623c..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember' (id = 'OpenSourceProjects_Storybook_Ember') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-ember") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html.kts deleted file mode 100644 index 039eed95efe..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html' (id = 'OpenSourceProjects_Storybook_HTML') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-html") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko.kts deleted file mode 100644 index 754da521c8f..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko' (id = 'OpenSourceProjects_Storybook_Marko') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-marko") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril.kts deleted file mode 100644 index bd0913a8a04..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril' (id = 'OpenSourceProjects_Storybook_Mithril') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-mithril") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer.kts deleted file mode 100644 index 7ed9e87651f..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer' (id = 'OpenSourceProjects_Storybook_Polymer') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-polymer") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact.kts deleted file mode 100644 index 7f169a3828f..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact' (id = 'OpenSourceProjects_Storybook_Preact') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-preact") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot.kts deleted file mode 100644 index c484eca68e5..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot' (id = 'OpenSourceProjects_Storybook_Riot') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-riot") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte.kts deleted file mode 100644 index 221d31ccf7b..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte' (id = 'OpenSourceProjects_Storybook_Svelte') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-svelte") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue.kts deleted file mode 100644 index 9c9fc353087..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue' (id = 'OpenSourceProjects_Storybook_Vue') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6-vue") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6.kts deleted file mode 100644 index 1fce2cf575d..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/8cc5f747-4ca7-4f0d-940d-b0c422f501a6.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '8cc5f747-4ca7-4f0d-940d-b0c422f501a6' (id = 'OpenSourceProjects_Storybook_Examples') -accordingly, and delete the patch script. -*/ -changeBuildType("8cc5f747-4ca7-4f0d-940d-b0c422f501a6") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667711.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667711.kts deleted file mode 100644 index 7b41f2e260a..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667711.kts +++ /dev/null @@ -1,22 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '9f9177e7-9ec9-4e2e-aabb-d304fd667711' (id = 'OpenSourceProjects_Storybook_Test') -accordingly, and delete the patch script. -*/ -changeBuildType("9f9177e7-9ec9-4e2e-aabb-d304fd667711") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true - - params { - add { - param("docker.node.version", "10.13") - } - } -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667712.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667712.kts deleted file mode 100644 index 6a63ab84d5c..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/9f9177e7-9ec9-4e2e-aabb-d304fd667712.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = '9f9177e7-9ec9-4e2e-aabb-d304fd667712' (id = 'OpenSourceProjects_Storybook_Bootstrap') -accordingly, and delete the patch script. -*/ -changeBuildType("9f9177e7-9ec9-4e2e-aabb-d304fd667712") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/d4320bd8-6094-4dd6-9bed-e13d6f0d12e2.kts b/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/d4320bd8-6094-4dd6-9bed-e13d6f0d12e2.kts deleted file mode 100644 index 7e2fb080192..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/buildTypes/d4320bd8-6094-4dd6-9bed-e13d6f0d12e2.kts +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.patches.buildTypes - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the buildType with uuid = 'd4320bd8-6094-4dd6-9bed-e13d6f0d12e2' (id = 'OpenSourceProjects_Storybook_CliTestLatestCra') -accordingly, and delete the patch script. -*/ -changeBuildType("d4320bd8-6094-4dd6-9bed-e13d6f0d12e2") { - check(paused == false) { - "Unexpected paused: '$paused'" - } - paused = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/patches/projects/69382d9b-7791-418a-9ff6-1c83b86ed6b5.kts b/.teamcity/OpenSourceProjects_Storybook/patches/projects/69382d9b-7791-418a-9ff6-1c83b86ed6b5.kts deleted file mode 100644 index a357d89ba72..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/patches/projects/69382d9b-7791-418a-9ff6-1c83b86ed6b5.kts +++ /dev/null @@ -1,17 +0,0 @@ -package OpenSourceProjects_Storybook.patches.projects - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.Project -import jetbrains.buildServer.configs.kotlin.v2017_2.ui.* - -/* -This patch script was generated by TeamCity on settings change in UI. -To apply the patch, change the project with uuid = '69382d9b-7791-418a-9ff6-1c83b86ed6b5' (id = 'OpenSourceProjects_Storybook') -accordingly, and delete the patch script. -*/ -changeProject("69382d9b-7791-418a-9ff6-1c83b86ed6b5") { - check(archived == false) { - "Unexpected archived: '$archived'" - } - archived = true -} diff --git a/.teamcity/OpenSourceProjects_Storybook/settings.kts b/.teamcity/OpenSourceProjects_Storybook/settings.kts deleted file mode 100644 index 622cf328f91..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/settings.kts +++ /dev/null @@ -1,35 +0,0 @@ -package OpenSourceProjects_Storybook - -import jetbrains.buildServer.configs.kotlin.v2017_2.* - -/* -The settings script is an entry point for defining a single -TeamCity project. TeamCity looks for the 'settings.kts' file in a -project directory and runs it if it's found, so the script name -shouldn't be changed and its package should be the same as the -project's id. - -The script should contain a single call to the project() function -with a Project instance or an init function as an argument. - -VcsRoots, BuildTypes, and Templates of this project must be -registered inside project using the vcsRoot(), buildType(), and -template() methods respectively. - -Subprojects can be defined either in their own settings.kts or by -calling the subProjects() method in this project. - -To debug settings scripts in command-line, run the - - mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate - -command and attach your debugger to the port 8000. - -To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View -> -Tool Windows -> Maven Projects), find the generate task -node (Plugins -> teamcity-configs -> teamcity-configs:generate), -the 'Debug' option is available in the context menu for the task. -*/ - -version = "2017.2" -project(OpenSourceProjects_Storybook.Project) \ No newline at end of file diff --git a/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster.kt b/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster.kt deleted file mode 100644 index 11a83618b39..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster.kt +++ /dev/null @@ -1,20 +0,0 @@ -package OpenSourceProjects_Storybook.vcsRoots - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.vcs.GitVcsRoot - -object OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster : GitVcsRoot({ - uuid = "cec03c4b-d52c-42a0-8e9e-53bde85d6b33" - id = "OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster" - name = "Main root" - url = "git@github.com:storybooks/storybook.git" - branch = "refs/heads/next" - branchSpec = """ - +:refs/(pull/*)/head - +:refs/heads/* - """.trimIndent() - authMethod = uploadedKey { - userName = "git" - uploadedKey = "Storybook bot" - } -}) diff --git a/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1.kt b/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1.kt deleted file mode 100644 index 1a9199bd728..00000000000 --- a/.teamcity/OpenSourceProjects_Storybook/vcsRoots/OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1.kt +++ /dev/null @@ -1,16 +0,0 @@ -package OpenSourceProjects_Storybook.vcsRoots - -import jetbrains.buildServer.configs.kotlin.v2017_2.* -import jetbrains.buildServer.configs.kotlin.v2017_2.vcs.GitVcsRoot - -object OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1 : GitVcsRoot({ - uuid = "5cacf90a-381a-4c73-9aa3-57f6439b545e" - id = "OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster1" - name = "https://github.com/storybooks/storybook#refs/heads/master (1)" - url = "git@github.com:storybooks/storybook.git" - branch = "refs/heads/next" - authMethod = uploadedKey { - userName = "git" - uploadedKey = "Storybook bot" - } -}) diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml deleted file mode 100644 index 5ce85538a7a..00000000000 --- a/.teamcity/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - 4.0.0 - OpenSourceProjects_Storybook Config DSL Script - OpenSourceProjects_Storybook - OpenSourceProjects_Storybook_dsl - 1.0-SNAPSHOT - - - org.jetbrains.teamcity - configs-dsl-kotlin-parent - 1.0-SNAPSHOT - - - - - jetbrains-all - http://download.jetbrains.com/teamcity-repository - - true - - - - teamcity-server - https://teamcity.jetbrains.com/app/dsl-plugins-repository - - true - - - - - - - JetBrains - http://download.jetbrains.com/teamcity-repository - - - - - . - - - kotlin-maven-plugin - org.jetbrains.kotlin - ${kotlin.version} - - - - - compile - process-sources - - compile - - - - test-compile - process-test-sources - - test-compile - - - - - - org.jetbrains.teamcity - teamcity-configs-maven-plugin - ${teamcity.dsl.version} - - kotlin - target/generated-configs - - - - - - - - org.jetbrains.teamcity - configs-dsl-kotlin - ${teamcity.dsl.version} - compile - - - org.jetbrains.teamcity - configs-dsl-kotlin-plugins - 1.0-SNAPSHOT - pom - compile - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - ${kotlin.version} - compile - - - org.jetbrains.kotlin - kotlin-script-runtime - ${kotlin.version} - compile - - - \ No newline at end of file diff --git a/README.md b/README.md index 4c3a1db3153..70912bc649f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Storybook

- Build Status on TeamCity Build Status on CircleCI CodeFactor Known Vulnerabilities diff --git a/lib/cli/test/run_tests.sh b/lib/cli/test/run_tests.sh index f2a51a8eb9b..34908300c65 100755 --- a/lib/cli/test/run_tests.sh +++ b/lib/cli/test/run_tests.sh @@ -12,19 +12,14 @@ function cleanup { trap cleanup EXIT fixtures_dir='fixtures' -teamcity=0 # parse command-line options # '-f' sets fixtures directory -# '-t' adds teamcity reporting -while getopts ":tf:" opt; do +while getopts ":f:" opt; do case $opt in f) fixtures_dir=$OPTARG ;; - t) - teamcity=1 - ;; esac done @@ -63,23 +58,11 @@ do # check that storybook starts without errors cd $dir - if [ $teamcity -eq 1 ] - then - echo "##teamcity[testStarted name='$dir' captureStandardOutput='true']" - fi - echo "Running smoke test in $dir" failed=0 yarn storybook --smoke-test --quiet || failed=1 - if [ $teamcity -eq 1 ] - then - if [ $failed -eq 1 ] - then - echo "##teamcity[testFailed name='$dir']" - fi - echo "##teamcity[testFinished name='$dir']" - elif [ $failed -eq 1 ] + if [ $failed -eq 1 ] then exit 1 fi diff --git a/package.json b/package.json index 49f5fcd4bfa..161c934aa35 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "docs:dev": "npm --prefix docs run dev", "github-release": "github-release-from-changelog", "lint": "yarn lint:js . && yarn lint:md .", - "lint:ci": "yarn lint:js --format ./node_modules/eslint-teamcity/index.js . && yarn lint:md .", "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives", "lint:md": "remark -q", "lint:package": "sort-package-json", @@ -157,7 +156,6 @@ "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-prettier": "^3.0.1", "eslint-plugin-react": "^7.12.4", - "eslint-teamcity": "^2.1.0", "esm": "^3.2.25", "github-release-from-changelog": "^1.3.2", "glob": "^7.1.3", @@ -175,7 +173,6 @@ "jest-jasmine2": "^24.7.1", "jest-preset-angular": "^6.0.1", "jest-raw-loader": "^1.0.1", - "jest-teamcity-reporter": "^0.9.0", "jest-vue-preprocessor": "^1.5.0", "jest-watch-typeahead": "^0.3.0", "lerna": "^3.14.1", @@ -209,9 +206,6 @@ "type": "opencollective", "url": "https://opencollective.com/storybook" }, - "eslint-teamcity": { - "reporter": "inspections" - }, "pr-log": { "skipLabels": [ "cleanup", diff --git a/scripts/test.js b/scripts/test.js index 88a4051a06f..5870525aa6a 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -99,12 +99,6 @@ const tasks = { option: '--update', extraParam: '-u --updateSnapshot', }), - teamcity: createOption({ - name: `Use TeamCity reporter`, - defaultValue: false, - option: '--teamcity', - extraParam: '-t --testResultsProcessor=jest-teamcity-reporter', - }), }; const getProjects = list => list.filter(key => key.projectLocation); diff --git a/yarn.lock b/yarn.lock index dcdb37312a3..17e6c9556b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11654,13 +11654,6 @@ eslint-scope@^4.0.0, eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-teamcity@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-teamcity/-/eslint-teamcity-2.1.0.tgz#275a5fa254bdb0119b2c3b8c0ec396114a96501b" - integrity sha512-0kDuziG8i4gd3DOJJ62qpTIhmZusZcQwXrlOlP+3880TRtf4SN5WlZRSp7a1wZnX0KtsU7ZHSAgQwlwuRR3X1Q== - dependencies: - fs-extra "^5.0.0" - eslint-utils@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512" @@ -17062,11 +17055,6 @@ jest-specific-snapshot@^2.0.0: dependencies: jest-snapshot "^24.1.0" -jest-teamcity-reporter@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/jest-teamcity-reporter/-/jest-teamcity-reporter-0.9.0.tgz#a9f337a928a14e7e84163817456b930ecf7cbce8" - integrity sha512-q6W+ZaJSCIXmxC9wsY67zNn+vwG/EgKJygYJYH860jih5zS6mc2ZFc4v78gh6rgzgM9/siUtQm7SnRunYuWmVw== - jest-util@^20.0.3: version "20.0.3" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-20.0.3.tgz#0c07f7d80d82f4e5a67c6f8b9c3fe7f65cfd32ad"