-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (34 loc) · 911 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- prepare
- test
- grade
copyTestScripts:
image: python:3.8
stage: prepare
artifacts:
untracked: true
script:
- git clone https://$ADMIN_UNAME:$ADMIN_ACCESS_TOKEN@git.app.uib.no/ii/inf101/21v/tutors/inf101-test-runner
- pip install GitPython python-gitlab
- python inf101-test-runner/copyTests.py
testing:
image: maven:latest
stage: test
artifacts:
untracked: true
dependencies:
- copyTestScripts
script:
- mvn test --fail-never
grading:
image: python:3.8
stage: grade
artifacts:
untracked: true
dependencies:
- testing
- copyTestScripts
script:
- git clone https://$ADMIN_UNAME:$ADMIN_ACCESS_TOKEN@git.app.uib.no/ii/inf101/21v/tutors/inf101-test-runner
- pip install GitPython python-gitlab
- python inf101-test-runner/run.py