1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-07-13 06:54:20 +00:00
seafile-server/ci/install-deps.sh
Shuai Lin b2d058badc
Add functional tests (#120)
* functional tests setup

* add a test case
2018-01-16 17:10:26 +08:00

19 lines
498 B
Bash
Executable File

#!/bin/bash
set -e -x
SCRIPT=${BASH_SOURCE[0]}
TESTS_DIR=$(dirname "${SCRIPT}")/..
SETUP_DIR=${TESTS_DIR}/ci
cd $SETUP_DIR
pip install -r requirements.txt
# download precompiled libevhtp
# TODO(lins05): we should consider build from source with https://github.com/criticalstack/libevhtp in the future
libevhtp_bin=libevhtp-bin_1.2.0.tar.gz
wget https://dl.bintray.com/lins05/generic/libevhtp-bin/$libevhtp_bin
# tar xvf $libevhtp_bin --strip-components=3 -C /usr
tar xf $libevhtp_bin -C $HOME