Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
UmarAuna authored Mar 7, 2024
2 parents 7cfc57b + b73ee3a commit 6fdae23
Show file tree
Hide file tree
Showing 108 changed files with 3,255 additions and 868 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ out/
_assets
~$*
.DS_Store/
.idea/workspace.xml
.idea/uiDesigner.xml
~$*
lib/kotlin-runtime.jar
_site/
Expand All @@ -37,7 +35,7 @@ pdf/kotlin-reference.pdf
pdf/tmp.html
*.pyc
google-credentials.json
package-lock.json
./package-lock.json
.env
pages/api/
external/
Expand Down
6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

122 changes: 0 additions & 122 deletions .idea/kotlin-web-site.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/vcs.xml

This file was deleted.

24 changes: 0 additions & 24 deletions .idea/watcherTasks.xml

This file was deleted.

6 changes: 3 additions & 3 deletions .teamcity/BuildParams.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
object BuildParams {
const val DOKKA_TEMPLATES_VERSION = "1.9.10"

const val KOTLINX_COROUTINES_RELEASE_TAG = "1.8.0-RC"
const val KOTLINX_SERIALIZATION_RELEASE_TAG = "v1.6.2"
const val KOTLINX_DATETIME_RELEASE_TAG = "v0.5.0"
const val KOTLINX_COROUTINES_RELEASE_TAG = "1.8.0"
const val KOTLINX_SERIALIZATION_RELEASE_TAG = "v1.6.3"
const val KOTLINX_DATETIME_RELEASE_TAG = "v0.6.0-RC"
const val KOTLINX_METADATA_JVM_RELEASE_TAG = "v0.7.0"

const val SEARCH_APP_ID = "7961PKYRXV"
Expand Down
10 changes: 10 additions & 0 deletions .teamcity/builds/kotlinlang/buidTypes/BuildJsAssets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,14 @@ object BuildJsAssets: BuildType({
dockerPull = true
}
}

dependencies {
artifacts(FetchBlogNews) {
buildRule = lastSuccessful(branch = "+:<default>")
artifactRules = """
+:latest-news.zip!** => latest-news/
""".trimIndent()
cleanDestination = true
}
}
})
30 changes: 20 additions & 10 deletions .teamcity/builds/kotlinlang/buidTypes/BuildSitePages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import builds.kotlinlang.templates.DockerImageBuilder
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildSteps.ScriptBuildStep
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import jetbrains.buildServer.configs.kotlin.triggers.finishBuildTrigger

const val kotlinWebsiteSetup = "/kotlin-website-setup.sh"
private const val kotlinWebsiteSetup = "/kotlin-website-setup.sh"

object BuildSitePages : BuildType({
name = "Build site pages"
Expand All @@ -26,6 +27,14 @@ object BuildSitePages : BuildType({
cleanCheckout = true
}

triggers {
finishBuildTrigger {
buildType = FetchBlogNews.id?.value ?: error("Invalid FetchBlogNews ID")
branchFilter = "+:<default>"
successfulOnly = true
}
}

steps {
script {
name = "Build html pages"
Expand Down Expand Up @@ -54,15 +63,15 @@ object BuildSitePages : BuildType({
script {
name = "Override with external source"
scriptContent = """
cp -fR _webhelp/reference/* build/docs/
#cp -fR _webhelp/mobile build/docs/
mv build dist
cp -fR spec dist/
cp -fR _assets dist/
cp -fR out dist/
cp -fR out/_next dist/_next/
cp -fR libs/* dist/api/
""".trimIndent()
cp -fR _webhelp/reference/* build/docs/
#cp -fR _webhelp/mobile build/docs/
mv build dist
cp -fR spec dist/
cp -fR _assets dist/
cp -fR out/* dist/
cp -fR out/_next dist/_next/
cp -fR libs/* dist/api/
""".trimIndent()
dockerImage = "alpine"
}

Expand Down Expand Up @@ -125,6 +134,7 @@ object BuildSitePages : BuildType({
""".trimIndent()
}
}

dependency(BuildReferenceDocs) {
snapshot {
onDependencyFailure = FailureAction.FAIL_TO_START
Expand Down
Loading

0 comments on commit 6fdae23

Please sign in to comment.