Skip to content
Snippets Groups Projects
Commit 668223b3 authored by Johannes Mey's avatar Johannes Mey
Browse files

add ci

parent 2e039cc9
No related branches found
No related tags found
No related merge requests found
stages:
- build
- test
variables:
# Instruct Testcontainers to use the daemon of DinD.
DOCKER_HOST: "unix:///var/run/docker.sock"
# # Improve performance with overlayfs.
# DOCKER_DRIVER: overlay2
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
TEST_REPORTS: "/builds/OpenLicht/eraser/eraser-base/build/reports/tests/test/"
TEST_LOG: "/builds/OpenLicht/eraser/eraser-base/logs/eraser-test.log"
TESTCONTAINERS_RYUK_DISABLED: "true"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build:
image: openjdk:8
tags:
- docker
stage: build
script:
- ./gradlew --console=plain --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
test:
image: openjdk:8
tags:
- docker
stage: test
script:
- ./gradlew --continue --console=plain check
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle
artifacts:
when: always
paths:
- $TEST_LOG
- $TEST_REPORTS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment