53 lines
755 B
YAML
53 lines
755 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:
|
|
- python3 abgabesystem.py deadline $CI_COMMIT_REF_NAME
|
|
|
|
only:
|
|
- tags
|
|
|
|
plagiates:
|
|
stage: plagiates
|
|
tags:
|
|
- abgabesystem
|
|
|
|
script:
|
|
- python3 abgabesystem.py plagiates $CI_COMMIT_REF_NAME
|
|
|
|
artifacts:
|
|
paths:
|
|
- results/
|
|
|
|
only:
|
|
- tags
|
|
|
|
sync:
|
|
stage: sync
|
|
tags:
|
|
- abgabesystem
|
|
|
|
script:
|
|
- python3 abgabesystem.py sync
|
|
|
|
only:
|
|
- master
|
|
|
|
except:
|
|
- tags
|