GitLab CI/CI yml file added
This commit is contained in:
parent
11684bf923
commit
dd7ea61446
1 changed files with 31 additions and 0 deletions
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
image:
|
||||||
|
name: docker:latest
|
||||||
|
pull_policy: if-not-present
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
MAVEN_OPTS: "-Dmaven.repo.local=.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: "-s /settings.xml -P nbki --batch-mode"
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: "$CI_BUILD_REF_NAME"
|
||||||
|
paths:
|
||||||
|
- .m2/repository
|
||||||
|
- z-distr/target/clearing/
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: maven:latest
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- mvn clean package -DskipTests -Pdistributive
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- docker compose down
|
||||||
|
- docker compose build
|
||||||
|
- docker compose up --abort-on-container-exit --exit-code-from clearing_system
|
||||||
Loading…
Add table
Reference in a new issue