image: docker.gitlab.gwdg.de/fontane-notizbuecher/build:latest variables: EXIST_DB: "eXist-db-4.3.1" stages: - build - test - deploy ant: stage: build script: - ant artifacts: paths: - build/*.xar installation: stage: test script: - wget --quiet --output-document=${EXIST_DB}.tar.gz https://bintray.com/existdb/releases/download_file?file_path=${EXIST_DB}.tar.gz - tar -xzf ${EXIST_DB}.tar.gz - cp build/*.xar ${EXIST_DB}/autodeploy - bash ${EXIST-DB}/bin/startup.sh | tee output.log & # wait for eXist - while [ $(curl -I -s http://localhost:8080 | grep -c "200 OK") == 0 ]; do sleep 2s; done # shutdown eXist - bash ${EXIST_DB}/bin/shutdown.sh - mv /tmp/tests-*.xml . artifacts: paths: - output.log - tests-*.xml upload: stage: deploy script: - FILENAME=$(ls build/*.xar) - curl -u ci:${EXIST_UPLOAD_PW} -X POST -F file=@${FILENAME} https://ci.de.dariah.eu/exist-upload