Commit 28d427d3 authored by Vít Kabele's avatar Vít Kabele

CI setup

parent f47ae5d1
Pipeline #2887 passed with stages
in 3 minutes and 5 seconds
image: gitlab.ow2.org:4567/disl/disl/disl-ci
# Setup cache to prevent downloading deps and compiling sources in each stage
cache: &cache
# Cache is branch-local
key: "${CI_COMMIT_REF_SLUG}"
# Cache deps and compiled classes
paths:
- 'output/'
- 'lib/'
- 'src-disl-agent/linux-x86_64' # Specific architecture of used container
# Adjust modification date to prevent recompiling sources in different stages.
before_script:
- find . -exec touch -t 200001010000 {} \;
stages:
- build
- test
# Jobs definitions
# The YAML Anchors are used because of Gitlab Issue#2838
# Check whether the build task succeeded
build:
stage: build
cache:
<<: *cache
policy:
push
script:
- ant build
# Run tests
test:
stage: test
cache:
<<: *cache
policy: pull
script:
- ant test
FROM frekele/ant:latest
# Install make and gcc (cc respectively)
RUN apt-get update && \
DEBIAN_FRONTEND='noninteractive' apt-get install -yq make gcc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment