1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-16 22:17:59 +00:00

[travis] Update

This commit is contained in:
zhengxie 2018-08-10 15:29:49 +08:00
parent 786c858938
commit 127e7f949a
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,11 @@
language: python language: python
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
env: env:
global: global:
- CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data - CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data
@ -29,10 +35,10 @@ script:
after_success: after_success:
# notify seafile-docs to rebuild if current branch(6.3) is updated # notify seafile-docs to rebuild if current branch(6.3) is updated
- test $TRAVIS_PULL_REQUEST != "false" && test $TRAVIS_BRANCH = "6.3" && .travis/rebuild-branches.sh - test $TRAVIS_PULL_REQUEST = "false" && test $TRAVIS_BRANCH = "6.3" && .travis/rebuild-branches.sh
# making dist assets if current branch(master/6.3/6.2) is updated # making dist assets if current branch(master/6.3/6.2) is updated
- test $TRAVIS_PULL_REQUEST != "false" && .travis/dist_and_push.sh - test $TRAVIS_PULL_REQUEST = "false" && .travis/dist_and_push.sh
after_failure: true after_failure: true

View File

@ -9,6 +9,6 @@ curl -s -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Accept: application/json" \ -H "Accept: application/json" \
-H "Travis-API-Version: 3" \ -H "Travis-API-Version: 3" \
-H "Authorization: ${TRAVIS_API_ACCESS_TOKEN}" \ -H "Authorization: token ${TRAVIS_API_ACCESS_TOKEN}" \
-d "$body" \ -d "$body" \
https://api.travis-ci.org/repo/haiwen%2Fseahub/requests https://api.travis-ci.org/repo/haiwen%2Fseahub/requests