Skip to content

Instantly share code, notes, and snippets.

@ryanlid
Created July 16, 2018 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanlid/cb1e1aca4f2914b2f550599dc09510d9 to your computer and use it in GitHub Desktop.
Save ryanlid/cb1e1aca4f2914b2f550599dc09510d9 to your computer and use it in GitHub Desktop.
Hexo Travis CI settings
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
@ryanlid
Copy link
Author

ryanlid commented Jul 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment