Skip to content

Commit

Permalink
chore(verify-exercises): skip tests for WIP exercises (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajborla authored Jul 12, 2024
1 parent 40f1381 commit 3119bb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/verify-exercises
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ verify_concept_exercise() {
verify_practice_exercise() {
local srcdir="${1}"
local exercise="$(basename ${srcdir})"
local testdir="$(mktemp -d)"
# Check whether exercise is a work-in-progress; if so, skip test, return success
local is_wip=$(jq '.exercises.practice[] | select(.slug=="'${exercise}'") | select(.status=="wip")' config.json)
[ -n "${is_wip}" ] && return 0
# Copy exercise directory contents to temporary directory
local testdir="$(mktemp -d)"
cp "${srcdir}"/* "${testdir}"/
cp "${srcdir}"/.meta/example*.rexx "${testdir}"/
# Prepare and perform exercise tests
Expand Down

0 comments on commit 3119bb0

Please sign in to comment.