Files
EasyDrop/.gitlab-ci.yml
2023-05-19 23:11:37 +00:00

45 lines
850 B
YAML

variables:
MVN_OPTS: >-
--batch-mode
--errors
--fail-at-end
--show-version
--no-transfer-progress
-DinstallAtEnd=true
-DdeployAtEnd=true
-Dsonar.host.url=https://sonar.fbe-adswen.rwu.de
-Dsonar.token=sqa_c39258caceb01d59515d6dfa9440a7b05cdd15f4
-Dhttps.protocols=TLSv1.2
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
image: maven:3.9.1-eclipse-temurin-17
cache:
key: "$CI_JOB_NAME"
paths:
- .m2/repository
stages:
- build
- test
- analyze
build:
stage: build
script:
- echo "Starting Maven build..."
- mvn $MVN_OPTS clean compile
test:
stage: test
script:
- echo "Starting Maven Test..."
- mvn $MVN_OPTS test
analyze:
stage: analyze
script:
- echo "Starting Code Analysis..."
- mvn $MVN_OPTS verify sonar:sonar -Pcoverage