Skip to content

Commit 516b06d

Browse files
committed
Setup TeamCity
1 parent b457833 commit 516b06d

26 files changed

Lines changed: 535 additions & 265 deletions

.github/workflows/build.yaml

Lines changed: 0 additions & 201 deletions
This file was deleted.

.github/workflows/deploy.dev.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.teamcity/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/**

.teamcity/Project.kt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import builds.PublishDevBuild
2+
import builds.PublishLocally
3+
import builds.Tests
4+
import builds.conventions.configureConventions
5+
import jetbrains.buildServer.configs.kotlin.ParameterDisplay
6+
import jetbrains.buildServer.configs.kotlin.Project
7+
import vcs.Github
8+
9+
/*
10+
* Copyright 2024-2025 JetBrains s.r.o. and Compose Hot Reload contributors.
11+
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
12+
*/
13+
14+
object ComposeHotReloadProject : Project({
15+
vcsRoot(Github)
16+
buildType(Tests)
17+
buildType(PublishDevBuild)
18+
buildType(PublishLocally)
19+
20+
buildTypes.forEach { buildType ->
21+
buildType.configureConventions()
22+
}
23+
24+
params {
25+
password(
26+
"env.ORG_GRADLE_PROJECT_signing.key",
27+
"credentialsJSON:a8763adb-f827-47c7-a463-344294cd4850",
28+
display = ParameterDisplay.HIDDEN,
29+
)
30+
31+
password(
32+
"env.ORG_GRADLE_PROJECT_signing.key.password",
33+
"credentialsJSON:55dbddf8-050d-4139-8a8c-82ede4c58523",
34+
display = ParameterDisplay.HIDDEN,
35+
)
36+
}
37+
})
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2024-2025 JetBrains s.r.o. and Compose Hot Reload contributors.
3+
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
4+
*/
5+
6+
package builds
7+
8+
import builds.conventions.PublishDevPrivilege
9+
import builds.conventions.PublishLocallyConvention
10+
import builds.conventions.PushPrivilege
11+
import builds.conventions.publishDevVersion
12+
import builds.conventions.setupGit
13+
import jetbrains.buildServer.configs.kotlin.BuildType
14+
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
15+
import jetbrains.buildServer.configs.kotlin.triggers.ScheduleTrigger
16+
import jetbrains.buildServer.configs.kotlin.triggers.schedule
17+
18+
object PublishDevBuild : BuildType({
19+
name = "Publish: Dev Build"
20+
description = "Bumps the 'dev' version and publishes to 'dev' repositories; Bumps the bootstrap version"
21+
22+
triggers {
23+
schedule {
24+
weekly {
25+
dayOfWeek = ScheduleTrigger.DAY.Sunday
26+
dayOfWeek = ScheduleTrigger.DAY.Wednesday
27+
timezone = "Europe/Berlin"
28+
hour = 3
29+
}
30+
}
31+
}
32+
33+
34+
steps {
35+
setupGit()
36+
37+
gradle {
38+
workingDir = "repository-tools"
39+
name = "Bump Dev Version"
40+
tasks = "bumpDevVersion"
41+
}
42+
43+
publishDevVersion()
44+
45+
gradle {
46+
workingDir = "repository-tools"
47+
name = "Bump Bootstrap Version"
48+
tasks = "bumpBootstrapVersion"
49+
}
50+
}
51+
}), PushPrivilege, PublishDevPrivilege, PublishLocallyConvention

.teamcity/builds/PublishLocally.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2024-2025 JetBrains s.r.o. and Compose Hot Reload contributors.
3+
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
4+
*/
5+
6+
package builds
7+
8+
import jetbrains.buildServer.configs.kotlin.BuildType
9+
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
10+
11+
object PublishLocally : BuildType({
12+
name = "Publish: Locally"
13+
14+
artifactRules = """
15+
build/repo/**/* => build/repo.zip
16+
""".trimIndent()
17+
18+
steps {
19+
gradle {
20+
name = "Publish Locally"
21+
tasks = "publishLocally"
22+
}
23+
}
24+
})

0 commit comments

Comments
 (0)