Skip to content
Snippets Groups Projects
Commit d3145238 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Adds CI config yml file, for issue #7

parent 60e30faf
No related branches found
No related tags found
No related merge requests found
image: maven:3.3.9-jdk-8
# most of this taken from https://stackoverflow.com/questions/37785154/how-to-enable-maven-artifact-caching-for-gitlab-ci-runner
cache:
paths:
- .m2/repository
# keep cache across branch
key: "$CI_BUILD_REF_NAME"
variables:
MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
build-job:
stage: build
script:
- "mvn clean compile -f tdt4140-gr1800/pom.xml $MAVEN_CLI_OPTS"
unittest-job:
stage: test
dependencies:
- build-job
script:
- "mvn package -f tdt4140-gr1800/pom.xml $MAVEN_CLI_OPTS"
integrationtest-job:
stage: test
dependencies:
- build-job
script:
- "mvn verify -f tdt4140-gr1800/pom.xml $MAVEN_CLI_OPTS"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment