Commit 1320957c authored by Nicola Bertazzo's avatar Nicola Bertazzo

add maven step to execute.

parent 3f779228
Pipeline #27 passed with stage
in 3 minutes and 23 seconds
......@@ -29,17 +29,33 @@ cache:
paths:
- /root/.m2/repository/
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# Because some enforcer rules might check dependency convergence and class duplications
# we use `test-compile` here instead of `validate`, so the correct classpath is picked up.
.validate: &validate
stage: build
script:
- 'ls -la'
- 'sleep 10'
# - 'mvn $MAVEN_CLI_OPTS test-compile'
build:
script: "mvn clean compile"
image: maven:3.3.9-jdk-8
tags:
- docker
# Validate merge requests using JDK8
validate:jdk8:
<<: *validate
test:
script: "mvn test"
image: maven:3.3.9-jdk-8
tags:
- docker
package:
script: "mvn package"
image: maven:3.3.9-jdk-8
tags:
- docker
int-test:
script: "mvn verify"
image: maven:3.3.9-jdk-8
tags:
- docker
docker-build:
script:
- "mvn package"
image: maven:3.3.9-jdk-8
tags:
- docker
\ No newline at end of file
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