Skip to content

Commit

Permalink
Fix CI silently not running concept exercise tests (#600)
Browse files Browse the repository at this point in the history
* Update journey-test.sh

Fix error in jq query when retrieving concept exercise slugs

* Add -o pipefail to journey-test.sh
  • Loading branch information
sanderploegsma authored Aug 24, 2023
1 parent 9d983ba commit e4fd4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/journey-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ solve_all_exercises() {
echo ">>> solve_all_exercises(exercism_exercises_dir=\"${exercism_exercises_dir}\")"

local track_root=$( pwd )
local concept_exercises=`jq -r '.exercises.concept[].slug | sort' config.json | sort | xargs`
local concept_exercises=`jq -r '.exercises.concept[].slug' config.json | sort | xargs`
local practice_exercises=`jq -r '.exercises.practice[].slug' config.json | sort | xargs`
local total_exercises=`jq '.exercises.concept + .exercises.practice | length' config.json`
local current_exercise_number=1
Expand Down Expand Up @@ -160,7 +160,7 @@ main() {
# Execution begins here...

# If any command fails, fail the script.
set -ex
set -exo pipefail
SCRIPTPATH=$( pushd `dirname $0` > /dev/null && pwd && popd > /dev/null )
EXECPATH=$( pwd )
# Make output easier to read in CI
Expand Down

0 comments on commit e4fd4cd

Please sign in to comment.