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

View File

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