Commit b669b261 authored by Mathias Goebel's avatar Mathias Goebel 🎠

Merge branch 'feature/#88-runner-docs' into 'develop'

Add docs for gitlab-ci.yml

Closes #88

See merge request !66
parents f57ad9ab 5d90b6c8
# This GitLab runner configuration ensures every version of the SADE app is
# working properly before making it public.
#
# Final versions of SADE (i.e. develop or master branches) that have been built
# successfully are uploaded to DARIAH-DE's public eXist repository at
# https://ci.de.dariah.eu/exist-repo/index.html where other projects can reuse it.
#
# Please make sure you have all necessary passwords set as secret variables.
#
# In case you're using SADE for an non-DARIAH-DE project, 'upload' should be
# adapted or completely omitted.
#
# Environment variables used:
# * ${EXIST_UPLOAD_PW} - the password needed to push to DARIAH-DE's eXist repo
# * ${FILENAME} - the name if the XAR package created, e.g. SADE-develop-1-1-1.xar
# a general image that contains everything eXist-db needs to run properly
image: docker.gitlab.gwdg.de/fontane-notizbuecher/build:latest
stages:
......@@ -5,6 +22,10 @@ stages:
- test
- deploy
# in the build stage eXist-db is (as the name implies) built considering all
# dependencies that are stated in build.properties and/or generic.xml.
# build-develop is triggered after pushing/merging into any branch except master
build-develop:
except:
- master
......@@ -17,6 +38,8 @@ build-develop:
- build/*.xar
- test/
# build-master is only triggered after pushing/merging into master
build-master:
only:
- master
......@@ -29,13 +52,15 @@ build-master:
- build/*.xar
- test/
# eXist-db is installed and all tests stated in post-install.xq are executed.
# ATTENTION: tests failing in post-install.xq will NOT cause the stage to fail!
installation:
except:
- tags
stage: test
script:
- bash test/eXist-db-*/bin/startup.sh | tee output.log &
# wait for eXist
# wait for eXist to have started
- while [ $(curl --head --silent http://localhost:8080 | grep -c "200 OK") == 0 ]; do sleep 2s; done
# shutdown eXist
- bash test/eXist-db-*/bin/shutdown.sh
......@@ -45,9 +70,11 @@ installation:
- output.log
- test/tests-*.xml
- test/eXist-db-*/webapp/WEB-INF/logs/expath-repo.log
# this enables us to get information like test coverage.
reports:
junit: test/tests-*.xml
upload:
only:
- master
......
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