-
-
Save ryanlid/cb1e1aca4f2914b2f550599dc09510d9 to your computer and use it in GitHub Desktop.
Hexo Travis CI settings
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
language: node_js | |
node_js: stable | |
# 只监听 source 分支的改动 | |
branches: | |
only: | |
- master | |
# 缓存依赖,节省持续集成时间 | |
cache: | |
directories: | |
- node_modules | |
before_install: | |
- git config --global user.name "ryan" | |
- git config --global user.email "ryanlid@live.com" | |
- chmod +x .travis/deploy.sh | |
install: | |
- npm install | |
script: | |
- npm run generate | |
after_success: | |
- .travis/deploy.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关gist
https://gist.github.com/2a5c496e38491ab90fae86ad1fc0a5aa
相关仓库文件
https://github.com/ryanlid/blog/blob/master/.travis.yml