1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 02:51:00 +00:00
seahub/.travis.yml.bak

57 lines
1.4 KiB
YAML
Raw Normal View History

2014-08-18 08:04:23 +00:00
language: python
2019-06-27 02:59:16 +00:00
python:
- "2.7"
2018-08-10 07:29:49 +00:00
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
env:
global:
- CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data
2019-06-27 02:59:16 +00:00
# install & start seafile-server CE, install nginx
2014-08-18 08:04:23 +00:00
before_install:
# npm token to fetch private repos
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
2014-08-19 08:43:47 +00:00
# build/init/start ccnet-server/seafile-server
2019-07-25 08:08:51 +00:00
- git clone --depth=1 --branch=7.0 git://github.com/haiwen/seafile-test-deploy /tmp/seafile-test-deploy
2014-08-19 08:43:47 +00:00
- cd /tmp/seafile-test-deploy && ./bootstrap.sh && cd -
2019-06-27 02:59:16 +00:00
# install nginx
2014-08-19 08:43:47 +00:00
- ./tests/install-deps.sh
- npm install -g requirejs
# install seahub requirements
2014-08-19 08:43:47 +00:00
install:
2019-06-27 02:59:16 +00:00
- pip install -r dev-requirements.txt
2014-08-30 15:17:08 +00:00
- pip install -r test-requirements.txt
before_scipt: true
# int & start seahub server, run seahub tests
script:
2019-01-25 07:49:16 +00:00
- .travis/test_seahub_changes.sh; rc=$?; if [[ $rc == 0 ]]; then ./tests/seahubtests.sh init && ./tests/seahubtests.sh runserver && ./tests/seahubtests.sh test; else true; fi
after_success:
2019-06-27 02:59:16 +00:00
# making dist assets if current branch(master/7.0) is updated
2019-08-21 03:08:19 +00:00
- travis_wait 30 test $TRAVIS_PULL_REQUEST = "false" && .travis/dist_and_push.sh
after_failure: true
after_script: true
2014-08-18 08:04:23 +00:00
notifications:
2019-01-25 08:26:44 +00:00
email:
recipients:
- lian@seafile.com
on_success: never
on_failure: always
branches:
2019-05-18 05:28:29 +00:00
only:
- master
2019-05-18 05:28:29 +00:00
- 7.0