cache ta-lib folder, skip build if cache exists

This commit is contained in:
Janne Sinivirta 2017-12-18 09:29:17 +02:00
parent 4c0a316e3e
commit e5f8c1e75d
2 changed files with 10 additions and 4 deletions

View File

@ -33,3 +33,4 @@ notifications:
cache: cache:
directories: directories:
- $HOME/.cache/pip - $HOME/.cache/pip
- ta-lib

View File

@ -1,3 +1,8 @@
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz if [ ! -d "ta-lib" ]; then
tar zxvf ta-lib-0.4.0-src.tar.gz wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
cd ta-lib && ./configure && make && sudo make install && cd .. tar zxvf ta-lib-0.4.0-src.tar.gz
cd ta-lib && ./configure && make && sudo make install && cd ..
else
echo "TA-lib already installed, skipping download and build."
cd ta-lib && sudo make install && cd ..
fi