2014-08-18 08:04:23 +00:00
|
|
|
language: python
|
2019-06-27 02:59:16 +00:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2018-07-30 09:06:55 +00:00
|
|
|
|
2018-08-10 07:29:49 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
|
|
|
|
2018-07-30 09:06:55 +00:00
|
|
|
env:
|
2018-08-08 02:22:26 +00:00
|
|
|
global:
|
|
|
|
- CCNET_CONF_DIR=/tmp/ccnet SEAFILE_CONF_DIR=/tmp/seafile-data
|
2018-07-30 09:06:55 +00:00
|
|
|
|
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:
|
2019-01-09 06:58:59 +00:00
|
|
|
# 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
|
2018-08-08 02:22:26 +00:00
|
|
|
- npm install -g requirejs
|
2018-07-30 09:06:55 +00:00
|
|
|
|
|
|
|
# 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
|
2018-07-30 09:06:55 +00:00
|
|
|
|
2018-08-08 02:22:26 +00:00
|
|
|
before_scipt: true
|
2018-07-30 09:06:55 +00:00
|
|
|
|
2018-08-08 02:22:26 +00:00
|
|
|
# int & start seahub server, run seahub tests
|
2018-07-30 09:06:55 +00:00
|
|
|
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
|
2018-07-30 09:06:55 +00:00
|
|
|
|
2018-08-08 02:22:26 +00:00
|
|
|
after_success:
|
2019-06-27 02:59:16 +00:00
|
|
|
# making dist assets if current branch(master/7.0) is updated
|
2018-08-10 07:29:49 +00:00
|
|
|
- test $TRAVIS_PULL_REQUEST = "false" && .travis/dist_and_push.sh
|
2018-07-30 09:06:55 +00:00
|
|
|
|
|
|
|
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
|
2018-07-30 09:06:55 +00:00
|
|
|
|
|
|
|
branches:
|
2019-05-18 05:28:29 +00:00
|
|
|
only:
|
2018-07-30 09:06:55 +00:00
|
|
|
- master
|
2019-05-18 05:28:29 +00:00
|
|
|
- 7.0
|