Commit 19f6f7bf authored by Merisier Tac's avatar Merisier Tac
Browse files

Separate build and test stages

parent a441f0af
Pipeline #226149 passed with stage
in 1 minute and 43 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
......
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