Skip to content
Snippets Groups Projects
Commit ab879bdf authored by Matt Bovel's avatar Matt Bovel
Browse files

Update grading-gitlab-ci.yml

parent 5a845ba8
Branches
No related tags found
No related merge requests found
...@@ -12,49 +12,36 @@ stages: ...@@ -12,49 +12,36 @@ stages:
- build - build
- grade - grade
variables:
OUTPUT_DIR: "-"
compile: compile:
stage: build stage: build
timeout: 15m timeout: 10m
image: lampepfl/moocs:2021-09-20 image: ${DOCKER_REPO}/compile
tags: tags:
- cs210 - cs210
except: except:
- tags - tags
- master - master
- exercise-1
- exercise-2
- exercise-3
- exercise-4
- exercise-5
- exercise-6
- exercise-7
- exercise-8
script: script:
- sbt packageSubmission - sbt packageSubmission
# Output of this job that needs to be stored to be reused in the grade job below # Output of this job that needs to be stored to be reused in the grade job below
artifacts: artifacts:
expire_in: 1 day expire_in: 20m
paths: paths:
- submission.jar - submission.jar
grade: grade:
stage: grade stage: grade
timeout: 15m timeout: 10m
except: except:
- tags - tags
- master - master
- exercise-1
- exercise-2
- exercise-3
- exercise-4
- exercise-5
- exercise-6
- exercise-7
- exercise-8
tags: tags:
- cs210 - cs210
image: image:
name: lampepfl/moocs:cs210-2021-${CI_COMMIT_BRANCH} name: ${DOCKER_REPO}/grader-${CI_COMMIT_BRANCH}
entrypoint: [""] entrypoint: [""]
allow_failure: true allow_failure: true
before_script: before_script:
...@@ -62,6 +49,4 @@ grade: ...@@ -62,6 +49,4 @@ grade:
- cp submission.jar /shared/submission/submission.jar - cp submission.jar /shared/submission/submission.jar
script: script:
- cd /grader - cd /grader
- /grader/grade - env -i bash --noprofile --norc -c "/grader/grade ch.epfl.lamp.grading.CourseraGrading /shared"
- cat /shared/txtFeedback.txt
- grep -q congratulations /shared/txtFeedback.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment