-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4377 from JetBrains/ktl-1576-kotlin-io-api-ref
feat(KTL-1576): added kotlinx-io dsl configuration
- Loading branch information
Showing
7 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
.teamcity/builds/apiReferences/kotlinx/io/KotlinxIOBuildApiReference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package builds.apiReferences.kotlinx.io | ||
|
||
import BuildParams.KOTLINX_IO_RELEASE_TAG | ||
import builds.apiReferences.dependsOnDokkaTemplate | ||
import builds.apiReferences.templates.BuildApiReference | ||
import builds.apiReferences.templates.buildDokkaHTML | ||
import builds.apiReferences.templates.scriptDokkaVersionSync | ||
import builds.apiReferences.templates.scriptDropSnapshot | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.buildSteps.script | ||
|
||
object KotlinxIOBuildApiReference : BuildType({ | ||
name = "kotlinx-io API reference" | ||
|
||
templates(BuildApiReference) | ||
|
||
artifactRules = "build/dokka/htmlMultiModule/** => pages.zip" | ||
|
||
params { | ||
param("release.tag", KOTLINX_IO_RELEASE_TAG) | ||
} | ||
|
||
vcs { | ||
root(builds.apiReferences.vcsRoots.KotlinxIO) | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxIOPrepareDokkaTemplates) | ||
} | ||
|
||
steps { | ||
scriptDropSnapshot { | ||
enabled = false // TODO readme, and disable this step for other libs too | ||
} | ||
scriptDokkaVersionSync { | ||
enabled = false // TODO readme, and disable this step for other libs too | ||
} | ||
buildDokkaHTML { | ||
enabled = false // TODO add useGradlewWrapper = true | ||
} | ||
script { | ||
name = "build api reference" | ||
scriptContent = """ | ||
#!/bin/bash | ||
set -e -u | ||
./gradlew dokkaHtmlMultiModule --no-daemon --no-configuration-cache | ||
""".trimIndent() | ||
} | ||
} | ||
}) |
20 changes: 20 additions & 0 deletions
20
.teamcity/builds/apiReferences/kotlinx/io/KotlinxIOBuildSearchIndex.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package builds.apiReferences.kotlinx.io | ||
|
||
import builds.apiReferences.dependsOnDokkaPagesJson | ||
import builds.apiReferences.templates.BuildApiReferenceSearchIndex | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
|
||
object KotlinxIOBuildSearchIndex: BuildType({ | ||
name = "Build search index for kotlinx-io" | ||
|
||
templates(BuildApiReferenceSearchIndex) | ||
|
||
params { | ||
param("env.ALGOLIA_INDEX_NAME", "kotlinx-io") | ||
param("env.API_REFERENCE_URL", "/api/kotlinx-io") | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaPagesJson(KotlinxIOBuildApiReference) | ||
} | ||
}) |
14 changes: 14 additions & 0 deletions
14
.teamcity/builds/apiReferences/kotlinx/io/KotlinxIOPrepareDokkaTemplates.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package builds.apiReferences.kotlinx.io | ||
|
||
import builds.apiReferences.templates.PrepareDokkaTemplate | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
|
||
object KotlinxIOPrepareDokkaTemplates: BuildType({ | ||
name = "Prepare dokka templates for kotlinx-io" | ||
|
||
templates(PrepareDokkaTemplate) | ||
|
||
params { | ||
param("env.ALGOLIA_INDEX_NAME", "kotlinx-io") | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package builds.apiReferences.vcsRoots | ||
|
||
import BuildParams.KOTLINX_IO_RELEASE_TAG | ||
import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot | ||
|
||
object KotlinxIO : GitVcsRoot({ | ||
name = "kotlinx-io vcs root" | ||
url = "[email protected]:Kotlin/kotlinx-io.git" | ||
branch = "refs/heads/ktl-1576-kotlinlang-api-ref" | ||
branchSpec = """ | ||
+:refs/heads/(*) | ||
+:refs/tags/(*) | ||
""".trimIndent() | ||
useTagsAsBranches = true | ||
authMethod = uploadedKey { | ||
uploadedKey = "teamcity" | ||
} | ||
}) |