修改CI命令

This commit is contained in:
江志雄 2018-07-13 17:15:07 +08:00
parent dec538d1c2
commit ddc005c13c
2 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,6 @@ cache:
directories:
- node_modules
# S: Build Lifecycle
install:
- npm install
@ -17,7 +16,7 @@ before_script:
# 无其他依赖项所以执行npm run build 构建就行了
script:
- npm run g
- npm run generate
after_script:
- cd ./public
@ -39,4 +38,3 @@ branches:
env:
global:
# 我将其添加到了travis-ci的环境变量中
# - GH_REF: github.com/j710328466/travis_demo.git

View File

@ -6,7 +6,7 @@
"version": "3.7.1"
},
"scripts": {
"g": "hexo generate"
"generate": "hexo generate"
},
"dependencies": {
"hexo": "^3.2.0",