abgabesystem/.gitlab-ci.yml
2018-05-15 17:51:51 +02:00

44 lines
690 B
YAML

image: $CI_REGISTRY/abgabesystem/abgabesystem:latest
variables:
BASECODE: test_solutions
stages:
- sync
- deadlines
- plagiates
before_script:
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
deadlines:
stage: deadlines
tags:
- abgabesystem
script:
- python abgabesystem.py deadline $CI_COMMIT_REF_NAME
plagiates:
stage: plagiates
tags:
- abgabesystem
script:
- python abgabesystem.py plagiates $CI_COMMIT_REF_NAME
artifacts:
paths:
- results/
sync:
stage: sync
tags:
- abgabesystem
script:
- python abgabesystem.py sync
only:
- master