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

Update .gitlab-ci.yml

parent a6ecc120
No related branches found
No related tags found
No related merge requests found
image: maven:3.8.3-openjdk-17 image: maven:3.8.3-openjdk-17
variables: variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository" MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode -P headless" MAVEN_CLI_OPTS: "--batch-mode -P headless -DskipUiTests=true"
stages: stages:
- test - test
...@@ -16,10 +16,10 @@ cache: ...@@ -16,10 +16,10 @@ cache:
test: test:
stage: test stage: test
script: script:
- mvn clean test -f todolist/pom.xml "-DskipUiTests=true" - "mvn clean test -f todolist/pom.xml $MAVEN_CLI_OPTS"
build: build:
stage: build stage: build
when: manual when: manual
script: script:
- mvn clean install -f todolist/pom.xml "-DskipUiTests=true" - "mvn clean install -f todolist/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