Skip to content

Commit

Permalink
judge whether docs update before Travis CI install
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 6, 2018
1 parent e878da9 commit 4e9a3a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ node_js: stable
install:
- yarn

before_install:
- |
if [ ! (git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(^docs)/') ]
then
exit 1
fi
script:
- npm run docs:build
- cd docs/.vuepress/dist
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ RSSHub 是一个轻量、易于扩展的 RSS 生成器,可以给任何奇奇
- 周报
- 腾讯吐个槽
- 吐槽新帖
- 笔趣阁
- 小说章节

## 参与我们

Expand Down

0 comments on commit 4e9a3a7

Please sign in to comment.