Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect setup script errors in CI #406

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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