Commit 4be2435a authored by Cypres TAC's avatar Cypres TAC
Browse files

Merge branch 'add-ci' into 'master'

Separate build and test stages

See merge request !5
parents 6dc617aa 19f6f7bf
Pipeline #226370 passed with stages
in 3 minutes and 14 seconds
......@@ -4,18 +4,30 @@ stages:
- build
- deploy
build_template:
build:
stage: build
tags:
- ci
script:
- cd java
- mvn package
# build all (for other phase such as docker) but skip tests
- mvn -DskipTests=true package
artifacts:
paths:
- java/target/*.jar
deploy_template:
test:
stage: build
tags:
- ci
script:
- cd java
- mvn verify
artifacts:
paths:
- java/target/*.jar
deploy:
stage: deploy
tags:
- ci
......@@ -24,4 +36,4 @@ deploy_template:
- mvn $MAVEN_CLI_OPTS -DskipTests=true -DnexusReleasesUrl=$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/maven -DnexusSnapshotsUrl=$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/maven -s ../.gitlab-ci/ci_settings.xml deploy
only:
- master
- tags
\ No newline at end of file
- tags
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment