Skip to content

Commit eac5956

Browse files
author
Donatien Garnier
committed
Add Travis test to detect any non-UTF-8-encoded text
1 parent decd7d0 commit eac5956

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ matrix:
106106
false;
107107
fi
108108
109+
- <<: *basic-vm
110+
name: "UTF-8 Check"
111+
script:
112+
# Make sure we're not introducing any text which is not UTF-8 encoded
113+
- git diff $TRAVIS_BRANCH...HEAD -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
114+
109115
- <<: *basic-vm
110116
name: "include check"
111117
env: NAME=include_check

0 commit comments

Comments
 (0)