Skip to content
Snippets Groups Projects
Commit a401dc20 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Update .gitlab-ci.yml

parent 96230fee
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ stages:
- document
- publish
# Builds code and generates documentation
build:
stage: build
script:
......@@ -26,6 +27,10 @@ build:
artifacts:
paths:
- application/target/$PROJECT_ARTIFACT_ID-*.zip
- MeshModel/target/site/apidocs/
- GUI/target/site/apidocs/
- Comparison/target/site/apidocs/
- target/site/apidocs/
expire_in: 1 hour
when: on_success
......@@ -43,28 +48,27 @@ test:
- if: '$CI_COMMIT_BRANCH'
# generate documentation when commiting to master and the VERSION.txt file has changed
document:
stage: document
script:
- mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:javadoc
- mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:aggregate
tags:
- shared-fi
rules:
- if: '$CI_COMMIT_BRANCH'
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- VERSION.txt
- if: '$CI_COMMIT_BRANCH'
when: never
artifacts:
paths:
- MeshModel/target/site/apidocs/
- GUI/target/site/apidocs/
- Comparison/target/site/apidocs/
- target/site/apidocs/
expire_in: 1 hour
when: on_success
#document:
# stage: document
# script:
# - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:javadoc
# - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:aggregate
# tags:
# - shared-fi
# rules:
# - if: '$CI_COMMIT_BRANCH == "master"'
# changes:
# - VERSION.txt
# - if: '$CI_COMMIT_BRANCH'
# when: never
# artifacts:
# paths:
# - MeshModel/target/site/apidocs/
# - GUI/target/site/apidocs/
# - Comparison/target/site/apidocs/
# - target/site/apidocs/
# expire_in: 1 hour
# when: on_success
# publish release when commiting to master and the VERSION.txt file has changed
publish:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment