Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ole Hermann Bakka
todo-list-example
Commits
1720dc6b
Commit
1720dc6b
authored
Nov 03, 2021
by
Hallvard Trætteberg
Browse files
Update .gitlab-ci.yml
parent
c2791cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1720dc6b
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment