Commit fb6e2d12 authored by David Diederich's avatar David Diederich
Browse files

First cut at creating a .m2 cache for aws-test jobs

Because downloading maven dependencies every test is really a bear.
parent e6fb03bd
......@@ -65,6 +65,12 @@
image: divido2/aws-maven:v1.0
environment:
name: AWS
variables:
MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml"
cache:
paths:
- $MAVEN_REPO_PATH
extends:
- .aws_variables
before_script:
......@@ -120,7 +126,7 @@ aws-test:
script:
- ls -ltr
- cd $INTEGRATION_TEST_DIR
- mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=info
- mvn $MAVEN_CLI_OPTS test -Dorg.slf4j.simpleLogger.defaultLogLevel=info
only:
variables:
- $AWS == 'true'
Supports Markdown
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