forked from serverless/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: check if docs have been generated
- Loading branch information
1 parent
044adb8
commit 427cb23
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ install: | |
|
||
script: | ||
- npm run lint | ||
- npm run docs | ||
- ./check-if-readme-is-up-to-date.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |