Set new CI commands and variables for modules.

This commit is contained in:
Tim Schubert 2018-08-20 16:25:44 +02:00
parent 34e31e67e1
commit f31e045137

View file

@ -1,13 +1,13 @@
image: $CI_REGISTRY/abgabesystem/docker-abgabesystem:latest image: $CI_REGISTRY/abgabesystem/docker-abgabesystem:latest
variables: variables:
BASECODE: solutions/solutions REFERENCE_SOLUTION: $CI_PROJECT_NAMESPACE/solutions/solutions
JPLAG_PATH: /app/jplag.jar
CI_REPO_HOST: $CI_REGISTRY CI_REPO_HOST: $CI_REGISTRY
stages: stages:
- test - test
- sync - deadline
- deadlines
- plagiates - plagiates
before_script: before_script:
@ -22,26 +22,29 @@ before_script:
## get API token from secret variable ## get API token from secret variable
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg - cp python-gitlab.cfg $HOME/.python-gitlab.cfg
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg - echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
- python setup.py install
deadlines: deadlines:
## creates the pushed tag inside all projects
stage: deadlines stage: deadlines
tags: tags:
- abgabesystem - abgabesystem
script: script:
- python3 ./abgabesystem.py deadline -t test -r test_course/solutions/solutions - abgabesystem deadline -t $CI_COMMIT_REF_NAME -r $REFERENCE_SOLUTION
only: only:
- tags - tags
plagiates: plagiates:
## creates checkout of the tag for all projects and runs plagiarism checker
stage: plagiates stage: plagiates
tags: tags:
- abgabesystem - abgabesystem
script: script:
- mkdir -p results - mkdir -p results
- python3 ./abgabesystem.py plagiates -t test -r test_course/solutions/solutions -j /app/jplag.jar - abgabesystem plagiates -t $CI_COMMIT_REF_NAME -r $REFERENCE_SOLUTION -j $JPLAG_PATH
artifacts: artifacts:
paths: paths:
@ -51,7 +54,8 @@ plagiates:
- tags - tags
doc: doc:
stage: test ## creates html documentation
stage: doc
tags: tags:
- abgabesystem - abgabesystem