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

Update .gitlab-ci.yml

parent c2791cc8
No related branches found
No related tags found
No related merge requests found
image: maven:3.8.3-openjdk-17
variables:
MAVEN_OPTS: "-DskipUiTests=true"
MAVEN_CLI_OPTS: "--batch-mode -P headless"
stages:
- test
- build
cache:
paths:
- .m2/repository
key: "$CI_BUILD_REF_NAME"
test:
stage: test
script:
- cd todolist; mvn test -B -P headless "-DskipUiTests=true"
- mvn clean test -f todolist/pom.xml
build:
stage: build
when: manual
script:
- cd todolist; mvn install -B -P headless "-DskipUiTests=true"
- mvn clean install -f todolist/pom.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment