#!/bin/bash #SBATCH --job-name=verify #SBATCH --time=5:00 #SBATCH --cpus-per-task=1 # The project's judge checks, exactly, every candidate in the submission format in the pushed route's folder, in any # of the four dimensions, and writes the score to metrics.json. The judge is checks/judge/, at the project's approved # version. On the default branch (its route folder is routes/) it measures what the branch holds: the records in # constructions/ and every route merged into routes/, so main has a verified score to beat. dir=$SS_INPUT/$SS_ROUTE_DIR if [ "$SS_ROUTE_DIR" = routes ]; then dir=$(mktemp -d); cp -R "$SS_INPUT/constructions" "$SS_INPUT/routes" "$dir"/ 2>/dev/null; fi python3 checks/judge/check.py "$dir"