-
Benjamin Baer authoredBenjamin Baer authored
.gitlab-ci.yml 2.20 KiB
before_script:
- VERSION=`cat ./version`
- RELDATE=`date '+%Y%m%d%H%M'`
- mkdir -p build || true
- echo "Host `hostname`, User `id`"
variables:
SELENIUM_LOGS_PATH: "/scratch/tmp/7/"
GIT_STRATEGY: clone
stages:
- before
- build
- test
# - selenium
#documentation:
# stage: before
# script:
# - docker pull t3docs/render-documentation
# - source <(docker run --rm t3docs/render-documentation show-shell-commands)
# - dockrun_t3rd makehtml
snapshot:
stage: build
except:
- tags
artifacts:
expire_in: 1 week
paths:
- build/
script:
- make VERSION=${VERSION} snapshot
- chmod a+r qfq_${VERSION}_*.zip
- echo "mv qfq_${VERSION}_*.zip qfq_${VERSION}_${RELDATE}-${CI_COMMIT_REF_NAME}.zip"
- mv qfq_${VERSION}_*.zip qfq_${VERSION}_${RELDATE}-${CI_COMMIT_REF_NAME}.zip
- scp qfq_${VERSION}_*.zip w16:qfq/snapshots/
- mv qfq_${VERSION}_*.zip build/qfq.zip
release:
stage: build
only:
- tags
artifacts:
expire_in: 1 week
paths:
- build/
script:
- make VERSION=${VERSION} release
- chmod a+r qfq_${VERSION}_*.zip
- scp qfq_${VERSION}_*.zip w16:qfq/releases/
- mv qfq_${VERSION}_*.zip build/qfq.zip
tests:
stage: test
script:
- make phpunit
#selenium:
# stage: selenium
# script:
# - unzip -q build/qfq.zip -d qfq
# - cd docker/
# # Required docker images: https://systemvcs.math.uzh.ch/megger/qfq_docker.git
# - ./run_qfq_docker.sh -no-deploy
# - ./deploy_to_container.sh ../qfq
# - ./run_selenium_tests_docker.sh
# - echo "hello"
# after_script: