From 41a4fbdf37336d6104c5ffd81ebe827da53fe0cd Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Mon, 23 Apr 2018 14:03:55 +0200 Subject: [PATCH 1/3] Add sync CI task --- .gitlab-ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4134a73..2f3f45c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,13 @@ stages: + - sync - deadlines - plagiates +before_script: + - cp python-gitlab.cfg $HOME/.python-gitlab.cfg + - echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg + - pip install -r requirements.txt + create_tags: image: python:3 stage: deadlines @@ -12,7 +18,16 @@ create_tags: - abgabesystem script: - - cp python-gitlab.cfg $HOME/.python-gitlab.cfg - - echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg - - pip install -r requirements.txt - python abgabesystem.py deadlines + +sync_students: + image: python:3 + stage: sync + only: + - master + + tags: + - abgabesystem + + script: + - python abgabesystem.py sync \ No newline at end of file From 992f5014f3f349f7c6d62a8263cafe412fc721a0 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Mon, 30 Apr 2018 09:09:22 +0200 Subject: [PATCH 2/3] Update config.yml --- config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.yml b/config.yml index f41872b..d0a72f2 100644 --- a/config.yml +++ b/config.yml @@ -12,6 +12,10 @@ courses: tag: test time: !!timestamp 2018-04-18 ref: master + - !!python/object:abgabesystem.Deadline + tag: blatt1 + time: !!timestamp 2018-04-29 + ref: master - !!python/object:abgabesystem.Course name: Programmieren 2 base: programmieren_2_solutions From 0c5a1f7dc00f4df6a32186081faa46924593458e Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Mon, 30 Apr 2018 09:13:26 +0200 Subject: [PATCH 3/3] Update .gitlab-ci.yml --- .gitlab-ci.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f3f45c..01ad1c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ stages: - - sync - deadlines - plagiates @@ -18,16 +17,4 @@ create_tags: - abgabesystem script: - - python abgabesystem.py deadlines - -sync_students: - image: python:3 - stage: sync - only: - - master - - tags: - - abgabesystem - - script: - - python abgabesystem.py sync \ No newline at end of file + - python abgabesystem.py deadlines \ No newline at end of file