diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a7d8fd1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +stages: + - deadlines + - plagiates + +create_tags: + image: python:3 + stage: deadlines + only: master + + tags: + - abgabesystem + + script: + - echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg + - pip install python-gitlab + - ./abgabesystem.py deadlines diff --git a/config.yml b/config.yml index f7a66a8..f41872b 100644 --- a/config.yml +++ b/config.yml @@ -8,10 +8,10 @@ courses: plagiates: programmieren_1_abgabesystem students: List_of_groups_Lecture_Programmieren_1.csv deadlines: -# - !!python/object:abgabesystem.Deadline -# tag: Exercise 1 -# time: !!timestamp 2018-04-01 -# ref: master + - !!python/object:abgabesystem.Deadline + tag: test + time: !!timestamp 2018-04-18 + ref: master - !!python/object:abgabesystem.Course name: Programmieren 2 base: programmieren_2_solutions @@ -19,7 +19,7 @@ courses: students: List_of_groups_Lecture_Programmieren_2.csv deadlines: -# - !!python/object:abgabesystem.Deadline -# tag: Exercise 1 -# time: !!timestamp 2018-04-01 -# ref: master + - !!python/object:abgabesystem.Deadline + tag: Test + time: !!timestamp 2018-04-19 + ref: master diff --git a/python-gitlab.cfg b/python-gitlab.cfg new file mode 100644 index 0000000..4302fdd --- /dev/null +++ b/python-gitlab.cfg @@ -0,0 +1,7 @@ +[global] +default = ips +ssl_verify = true + +[ips] +url = https://ips1.ibr.cs.tu-bs.de +api_version = 4 \ No newline at end of file