diff --git a/.travis.yml b/.travis.yml index 4599448d..bace3b86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/cdnrefresh-dirs.txt b/cdnrefresh-dirs.txt new file mode 100644 index 00000000..50d11cd5 --- /dev/null +++ b/cdnrefresh-dirs.txt @@ -0,0 +1 @@ +http://d2admin.fairyever.com/ \ No newline at end of file diff --git a/qiniu-config b/qiniu-config new file mode 100644 index 00000000..2eefb59f --- /dev/null +++ b/qiniu-config @@ -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 +} \ No newline at end of file diff --git a/qshell b/qshell new file mode 100755 index 00000000..fd53ac81 Binary files /dev/null and b/qshell differ