Skip to content

Commit

Permalink
Modernize CI scripts
Browse files Browse the repository at this point in the history
- Use the same configuration as in other repositories
  • Loading branch information
jouvin committed Nov 7, 2024
1 parent 51a65a2 commit d3f219f
Show file tree
Hide file tree
Showing 5 changed files with 470 additions and 23 deletions.
8 changes: 8 additions & 0 deletions .ci-scripts/indent
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e # halt script on error

rm -f /tmp/indent.py
wget -q https://raw.githubusercontent.com/stfc/Pan-Indenter/master/pan_indent_checker.py -O /tmp/indent.py
chmod u+x /tmp/indent.py

git diff --name-only --diff-filter=d HEAD^ | grep '\.pan$' | xargs -rn1 /tmp/indent.py check || exit 1
2 changes: 1 addition & 1 deletion .ci-scripts/panlint
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ rm -f /tmp/panlint.py
wget -q https://raw.githubusercontent.com/quattor/pan/master/panc/src/main/scripts/panlint/panlint.py -O /tmp/panlint.py
chmod u+x /tmp/panlint.py

git diff --name-only HEAD^ | grep '\.pan$' | xargs -r /tmp/panlint.py || exit 1
git diff --name-only --diff-filter=d HEAD^ | grep '\.pan$' | xargs -r /tmp/panlint.py || exit 1
11 changes: 0 additions & 11 deletions .ci-scripts/test-library

This file was deleted.

Loading

0 comments on commit d3f219f

Please sign in to comment.