Skip to content

Commit

Permalink
fix: explicitly only check for js/ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon committed May 3, 2018
1 parent e79f064 commit e0738c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ os:
language: node_js

node_js:
- 8
- "node"

env:
global:
Expand All @@ -34,10 +34,10 @@ before_install:
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
-

script:
- npm run forceprettier
- if [[ $(git diff-index HEAD --) ]]; then
- if [[ $(git diff-index HEAD -- *.js *.ts) ]]; then
git diff;
echo "Prettier Failed. Run `gulp` or `gulp forceprettier`";
exit 1;
Expand Down

0 comments on commit e0738c8

Please sign in to comment.