Skip to content

Commit ae068d9

Browse files
committed
Check for modified files in Travis
1 parent d2c4b38 commit ae068d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ language: node_js
33
node_js:
44
- "6"
55
script:
6-
- "yarn build-ci"
6+
- yarn build-ci
7+
# Ideally we wouldn't commit transpiled .js or .js.map files, but for now:
8+
- if ! git diff --exit-code --name-only HEAD
9+
then
10+
echo "Changed files detected (listed above). Please run 'yarn build' before you commit."
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)