CI setting update

This commit is contained in:
liyang 2018-10-23 13:51:40 +08:00
parent 450dd38709
commit 813b11d78c
4 changed files with 28 additions and 8 deletions

View File

@ -1,5 +1,6 @@
language: node_js
node_js: stable
cache:
directories:
- "node_modules"
@ -11,11 +12,11 @@ branches:
script:
- npm run build:travis
deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
before_install:
- ./qshell account $AK $SK
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
after_success:
- ./qshell qupload qiniu-config
- ./qshell cdnrefresh -dirs cdnrefresh-dirs.txt

1
cdnrefresh-dirs.txt Normal file
View File

@ -0,0 +1 @@
http://d2admin.fairyever.com/

18
qiniu-config Normal file
View File

@ -0,0 +1,18 @@
{
"src_dir" : "/home/travis/build/d2-projects/d2-admin/dist",
"bucket" : "d2-admin",
"ignore_dir" : false,
"overwrite" : true,
"check_exists" : true,
"check_hash" : true,
"check_size" : true,
"rescan_local" : true,
"skip_file_prefixes" : "test,demo,",
"skip_path_prefixes" : "hello/,temp/",
"skip_fixed_strings" : ".svn,.git",
"skip_suffixes" : ".DS_Store,.exe",
"log_file" : "upload.log",
"log_level" : "info",
"log_rotate" : 1,
"log_stdout" : false
}

BIN
qshell Executable file

Binary file not shown.