Commit b61b4c0f authored by Anna Foix's avatar Anna Foix 🦇
Browse files

Use cached maven packages

parent 5d729f7d
Pipeline #113504 failed with stages
in 9 minutes and 57 seconds
......@@ -24,17 +24,20 @@ cache:
paths:
- .m2/repository
variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
## Diffent stages for the CICD of Data API
unitTest:
stage: unitTest
before_script:
- mvn dependency:purge-local-repository install -DskipTests=true -P production -Dmaven.javadoc.skip=true -B -V -DskipDockerPush
- mvn install -DskipTests=true -P production -Dmaven.javadoc.skip=true -B -V -DskipDockerPush
script: mvn test
integrationTest:
stage: integrationTest
before_script:
- mvn dependency:purge-local-repository install -DskipTests=true -P production -Dmaven.javadoc.skip=true -B -V -DskipDockerPush
- mvn install -DskipTests=true -P production -Dmaven.javadoc.skip=true -B -V -DskipDockerPush
# - sudo service postgresql stop
- mkdir -p /usr/local/share/ca-certificates/ca/
- cp extras/certificate/rootCA.pem /usr/local/share/ca-certificates/ca/CA.crt
......
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