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

Add CI config

parent d1f0e3fa
No related branches found
No related tags found
No related merge requests found
# This CI config file is not used in this repository but instead referenced
# from each student project (https://gitlab.epfl.ch/help/ci/pipelines/settings#custom-ci-configuration-path)
# and used to grade them.
workflow:
rules:
# Don't run the CI on commit messages contain "[no-ci]", used to deploy
# assignments without overloading the CI.
- if: $CI_COMMIT_MESSAGE !~ /\[no-ci\]/
stages:
- build
- grade
compile:
stage: build
timeout: 10m
image: ${DOCKER_REPO}/compile
tags:
- cs210
except:
- tags
- main
script:
- sbt packageSubmission
# Output of this job that needs to be stored to be reused in the grade job below
artifacts:
expire_in: 24h
paths:
- submission.jar
grade:
stage: grade
timeout: 10m
except:
- tags
- main
tags:
- cs210
variables:
JAR_PATH: "${CI_PROJECT_DIR}/submission.jar"
image: ${DOCKER_REPO}/grader-${CI_COMMIT_BRANCH}
allow_failure: true
script: "😎"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment