Skip to content

Commit

Permalink
travis: check if docs have been generated
Browse files Browse the repository at this point in the history
  • Loading branch information
christophgysin committed Mar 4, 2017
1 parent 044adb8 commit 427cb23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ install:

script:
- npm run lint
- npm run docs
- ./check-if-readme-is-up-to-date.sh
11 changes: 11 additions & 0 deletions check-if-readme-is-up-to-date.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

echo "Checking if README.md has been updated..."

if ! git diff-index --quiet HEAD README.md; then
echo "README.md needs to be regenerated!"
echo
echo "Please run:"
echo " $ npm run docs"
exit 1
fi

0 comments on commit 427cb23

Please sign in to comment.