Skip to content

Commit

Permalink
Detect setup script errors in CI (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesfrain authored Nov 21, 2021
1 parent 86c676c commit 187f432
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/removeAnchors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# This script removes all code anchors to improve readability

# Echo commands to shell
set -x
# Exit on first failure
set -e

# All .purs & .js files in the src/ and test/ directories of chapter exercises.
FILES=$(find . -regextype posix-extended -regex '\./exercises/chapter[0-9]{1,2}/(src|test)/.*\.(purs|js)' -type f)

Expand Down
5 changes: 5 additions & 0 deletions scripts/resetSolutions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# - Removes lines with a note to delete them.
# - Moves the no-peeking directory outside of the compilation path.

# Echo commands to shell
set -x
# Exit on first failure
set -e

# For all chapters
for d in exercises/*; do
# if directory (excludes LICENSE file)
Expand Down

0 comments on commit 187f432

Please sign in to comment.