-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
32 lines (29 loc) · 1.08 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true
-DdeployAtEnd=true"
image: maven:3.8.6-openjdk-18-slim
#cache:
# paths:
# - ".m2/repository"
verify:tests:
stage: test
script:
- mvn $MAVEN_CLI_OPTS compile test -DskipITs
verify:integration-tests:
stage: test
script:
- mvn $MAVEN_CLI_OPTS test-compile failsafe:integration-test
#deploy:jdk18:
# stage: deploy
# script:
# - if [ ! -f ci_settings.xml ]; then echo "CI settings missing\! If deploying to
# GitLab Maven Repository, please see https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#create-maven-packages-with-gitlab-cicd
# for instructions."; fi
# - mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml
# only:
# variables:
# - "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"