1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 02:42:26 +00:00
Files
seahub/.travis.yml

60 lines
2.1 KiB
YAML
Raw Normal View History

2014-08-18 16:04:23 +08:00
language: python
2018-08-10 15:29:49 +08: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
- secure: "AFqKit45l2758+TrH/l0SFN6k5lc9ALmZGPBGbGeYSzSGZ4+Cx7tHyQwgZgiitf9BzVci1ClaIMfNxp8BG6ECDAMXcbMyAksItG2aM/x//YT59ljgrwnNeZFfwh8LWuZslboxXx/Pfrv9QSX0c6dcTyEfKFLVKW1U2bn4MxdF+A="
- secure: "cXNbNl1wiIXk7D6jviQa4tg0XfAPPT/uze2dchniYZm/5clxiOXuLAfFqXrF+morakWv7+nZeoXh+RFMSllQvwJlGGRoD01hazoJTGhoV+7Be2KHTGG/YwUKT/PzxgRqPDNW3XUkPWChQQXjP+nb6QjbMrXcbNOgE+Glb23Gz0k="
# install & start seafile-server CE v6.3, install phantomjs & nginx
2014-08-18 16:04:23 +08:00
before_install:
2014-08-19 16:43:47 +08:00
# build/init/start ccnet-server/seafile-server
2018-07-10 17:47:46 +08:00
- git clone --depth=1 --branch=6.3 git://github.com/haiwen/seafile-test-deploy /tmp/seafile-test-deploy
2014-08-19 16:43:47 +08:00
- cd /tmp/seafile-test-deploy && ./bootstrap.sh && cd -
2014-08-30 23:17:08 +08:00
# install phantomjs
2014-08-19 16:43:47 +08:00
- ./tests/install-deps.sh
- npm install -g requirejs
- openssl aes-256-cbc -K $encrypted_bdef00a70236_key -iv $encrypted_bdef00a70236_iv -in .travis/travis_deploy_key.enc -out travis_deploy_key -d && mv travis_deploy_key ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
# install seahub requirements
2014-08-19 16:43:47 +08:00
install:
- pip install -r requirements.txt --allow-all-external --allow-unverified PIL
2014-08-30 23:17:08 +08:00
- pip install -r test-requirements.txt
before_scipt: true
# int & start seahub server, run seahub tests
script:
- ./tests/seahubtests.sh init && ./tests/seahubtests.sh runserver && ./tests/seahubtests.sh test
after_success:
2018-10-15 13:28:29 +08:00
# notify seafile-docs to rebuild if master is updated
- test $TRAVIS_PULL_REQUEST = "false" && test $TRAVIS_BRANCH = "master" && .travis/rebuild-branches.sh
2018-08-10 15:09:49 +08:00
# making dist assets if current branch(master/6.3/6.2) is updated
2018-08-10 15:29:49 +08:00
- test $TRAVIS_PULL_REQUEST = "false" && .travis/dist_and_push.sh
after_failure: true
after_script: true
2014-08-18 16:04:23 +08:00
notifications:
email: false
slack:
rooms:
secure: TAfn5FZpRfzjGnHl2oiF1bF9FVg3L+ObK6gkNmdAY08xgdd8fHFOHrlD1WzrYSom3eT2OZ/5YPzrKAwbuWcMqTWc7NxjBCEDwfRu7F0DVBX/tUCd4f8H4B0LhaVpF3kNpApRV8UhIi1+2z9slP0O1BerDDn5AaTOx9YfcAFs/w8=
on_success: always
branches:
only:
- master
- 6.3
- 6.2
- seafile-docs