mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 19:00:12 +00:00
22 lines
957 B
YAML
22 lines
957 B
YAML
![]() |
pipeline:
|
||
|
build:
|
||
|
image: docker.seafile.top/drone/seafile-pro-builder:v4
|
||
|
pull: true
|
||
|
secrets: [ github_token, npm_token, travis ]
|
||
|
when:
|
||
|
branch:
|
||
|
event: [ push, pull_request ]
|
||
|
include: [ master, python3-master ]
|
||
|
exclude: []
|
||
|
|
||
|
commands:
|
||
|
- cd /tmp/seafile-test-deploy && git fetch origin python3:python3 && git checkout python3
|
||
|
- ./bootstrap.sh && cd -
|
||
|
- export CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data
|
||
|
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
|
||
|
- cd /drone/src/github.com/haiwen/seahub
|
||
|
- ./tests/install-deps.sh
|
||
|
- pip install -r test-requirements.txt
|
||
|
- .travis/test_seahub_changes.sh; rc=$?; if test "$rc" -eq 0; then ./tests/seahubtests.sh init && ./tests/seahubtests.sh runserver && ./tests/seahubtests.sh test; else true; fi
|
||
|
- if test $DRONE_COMMIT_BRANCH = "master"; then .travis/dist_and_push.sh; else true; fi
|