39 lines
842 B
YAML
39 lines
842 B
YAML
# This configuration is not used for the final grading, you can change it if
|
|
# you know what you're doing.
|
|
|
|
stages:
|
|
- build
|
|
- grade
|
|
|
|
compile:
|
|
stage: build
|
|
image: lampepfl/moocs-dotty:2019-09-17-2
|
|
tags:
|
|
- cs210
|
|
script:
|
|
- sbt packageSubmission
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- submission.jar
|
|
|
|
grade:
|
|
stage: grade
|
|
tags:
|
|
- cs210
|
|
image:
|
|
name: registry.gitlab.com/fnux/cs210-grading-images/progfun1-example:20190919-916bf8892e34b9d4118da077025ca92be1be1d48
|
|
entrypoint: [""]
|
|
allow_failure: true
|
|
before_script:
|
|
- mkdir -p /shared/submission/
|
|
- cp submission.jar /shared/submission/submission.jar
|
|
script:
|
|
- cd /grader
|
|
- /grader/grade > result.json
|
|
- cat result.json | /grader/feedback-printer
|
|
artifacts:
|
|
expire_in: 7 days
|
|
paths:
|
|
- /grader/result.json
|