#!/bin/bash #SBATCH --job-name=verify #SBATCH --time=10:00 # Judge the certificate a route pushed. # # This script and the checker it runs come from the approved version of the project (the checkout the runner laid down # at the job's working directory); only the route's files come from the pushed commit ($SS_INPUT). A route that edits # checks/ therefore changes nothing about its own verdict. # # The score file must be written to the job's working directory (not into $SS_INPUT): the runner sends back exactly the # file named by "metrics" in scienceslack.json, and the site keeps it only when the job exits 0. set -euo pipefail REPO="$(cd "$(dirname "$0")" && pwd)" ROUTE="$SS_INPUT/${SS_ROUTE_DIR:-.}" python3 "$REPO/checks/verify.py" "$ROUTE" --metrics count-metrics.json