Skip to content
Snippets Groups Projects
Commit 05cf8d56 authored by René Schöne's avatar René Schöne
Browse files

Update build process to dev/master split

- run build+test on every branch
- publish with pipeline-iid only in dev
- publish normally only in master
- make pages only in master
parent 45b09e3f
Branches
No related tags found
1 merge request!60.3.6
Pipeline #12720 passed
......@@ -12,20 +12,35 @@ build:
before_script:
- ls -lah *
script:
- ./gradlew assemble
- "./gradlew assemble"
test:
image: openjdk:11
stage: test
needs:
- build
script:
- ./gradlew test
- "./gradlew test"
artifacts:
reports:
junit: relast2uml.tests/build/test-results/test/TEST-*.xml
junit: "*/build/test-results/test/TEST-*.xml"
publish:
publish_dev:
image: openjdk:11
stage: publish
needs:
- test
script:
- "./gradlew setDevVersionForCI"
- "./gradlew publish"
only:
- dev
publish_master:
image: openjdk:11
stage: publish
needs:
- test
script:
- "./gradlew publish"
only:
......@@ -34,11 +49,13 @@ publish:
pages:
image: python:3.7-alpine
stage: publish
needs:
- test
script:
- pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables
- sphinx-build -b html pages/ public
- "pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables"
- "sphinx-build -b html pages/ public"
artifacts:
paths:
- public
only:
- master
- master
......@@ -46,6 +46,14 @@ task newVersion() {
}
}
task setDevVersionForCI() {
doFirst {
def props = new Properties()
props['version'] = version + "-$System.env.CI_PIPELINE_IID"
props.store(file(versionFile).newWriter(), null)
}
}
//679
publishing {
publications {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment