Skip to content

Commit

Permalink
Merge pull request #188 from jrha/travis_indent
Browse files Browse the repository at this point in the history
Run indentation check against modified pan files
  • Loading branch information
stdweird committed Oct 29, 2018
2 parents de4b695 + dffdaf1 commit 8383881
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis-scripts/indent
@@ -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 HEAD^ | grep '\.pan$' | xargs -r /tmp/indent.py || exit 1
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,7 @@ install:

script:
- ./.travis-scripts/panlint
- ./.travis-scripts/indent
- ./.travis-scripts/test-library

sudo: false

0 comments on commit 8383881

Please sign in to comment.