Skip to content

Commit

Permalink
测试travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
youngjuning committed Aug 22, 2018
1 parent c65ae7a commit 0288a6b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
sudo: required
node_js:
- 8.11.3
branch: master

cache:
directories:
- node_modules

before_install:
- export TZ='Asia/Shanghai' # 设置时区

script:
- ./vuepress-deploy.sh
9 changes: 8 additions & 1 deletion vuepress-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ git init
git add -A
git commit -m 'deploy'

# 如果使用 travis 持续集成
git config --local user.name "杨俊宁"
git config --local user.email {[email protected]}

# 如果发布到 https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master

# 如果发布到 https://<USERNAME>.github.io/<REPO>
git push -f [email protected]:youngjuning/wxPromise.git master:gh-pages
# git push -f [email protected]:youngjuning/wxPromise.git master:gh-pages

# 如果使用 travis 持续集成
git push -f https://${access_token}@github.com/youngjuning/wxPromise.git master:gh-pages

cd -

0 comments on commit 0288a6b

Please sign in to comment.