diff --git a/.travis.yml b/.travis.yml index b890e1ca..a23d2fae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ matrix: before_install: [] install: - pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl - - bash ./install.sh python3 pip3 + - bash ./install.sh python3 pip3 /usr/local script: - pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment diff --git a/install.sh b/install.sh index 3f445045..3dc936ac 100644 --- a/install.sh +++ b/install.sh @@ -2,16 +2,18 @@ python=$1 pip=$2 +prefix=$3 [[ -z $python ]] && python=python [[ -z $pip ]] && pip=pip +[[ -z $prefix ]] && prefix=/usr # Get and build ta-lib pushd /tmp wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz tar -xf ta-lib-0.4.0-src.tar.gz cd ta-lib -./configure --prefix=/usr/local +./configure --prefix=$prefix make sudo make install popd