File tree Expand file tree Collapse file tree 3 files changed +41
-9
lines changed Expand file tree Collapse file tree 3 files changed +41
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
language : python
2
3
python :
3
4
- " 2.7"
8
9
- linux
9
10
env :
10
11
global :
11
- - TA_INCLUDE_PATH=$HOME/dependencies/include
12
- - TA_LIBRARY_PATH=$HOME/dependencies/lib
13
- - LD_LIBRARY_PATH=$HOME/dependencies/lib
12
+ - DEPS_DIR=$HOME/dependencies
13
+ matrix :
14
+ - WITH_TA_LIBRARY=yes
15
+ TA_INCLUDE_PATH=$DEPS_DIR/include
16
+ LD_LIBRARY_PATH=$DEPS_DIR/lib
17
+ TA_LIBRARY_PATH=$DEPS_DIR/lib
18
+ cache :
19
+ directories :
20
+ - $DEPS_DIR
14
21
install :
22
+ - pip install --upgrade pip wheel
15
23
- pip install -r requirements_test.txt
16
- - mkdir $HOME/dependencies
17
- - wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
18
- - tar -xvzf ta-lib-0.4.0-src.tar.gz
19
- - pushd ta-lib && ./configure --prefix=$HOME/dependencies && make install && popd
24
+ - if [ $WITH_TA_LIBRARY = "yes" ]; then
25
+ ./tools/build_talib_from_source.bash $DEPS_DIR;
26
+ fi
20
27
script :
21
- - make
22
28
- make test
Original file line number Diff line number Diff line change 20
20
perf :
21
21
python tools/perf_talib.py
22
22
23
- test :
23
+ test : build
24
24
LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} nosetests
25
25
26
26
sdist :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ if [[ -z $1 ]]; then
5
+ echo " Usage: $0 deps_dir"
6
+ exit 1
7
+ fi
8
+
9
+ DEPS_DIR=$1
10
+
11
+ TA_LIB_TGZ=" ta-lib-0.4.0-src.tar.gz"
12
+ TA_LIB_URL=" http://prdownloads.sourceforge.net/ta-lib/$TA_LIB_TGZ "
13
+
14
+ if [[ -d $DEPS_DIR /lib ]]; then
15
+ echo " Already built"
16
+ exit 0
17
+ fi
18
+ mkdir -p $DEPS_DIR /tmp
19
+ wget -O " $DEPS_DIR /tmp/$TA_LIB_TGZ " $TA_LIB_URL
20
+ pushd $DEPS_DIR /tmp
21
+ tar -zxvf $TA_LIB_TGZ
22
+ popd
23
+ pushd $DEPS_DIR /tmp/ta-lib
24
+ ./configure --prefix=$DEPS_DIR
25
+ make install
26
+ popd
You can’t perform that action at this time.
0 commit comments