Skip to content

Commit

Permalink
Merge pull request #117 from briancappello/travis
Browse files Browse the repository at this point in the history
Get travis passing
  • Loading branch information
mrjbq7 committed Sep 28, 2016
2 parents ee6fb10 + 91fd95c commit 821293f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
@@ -1,16 +1,22 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
os:
- linux
- osx
env:
global:
- TA_INCLUDE_PATH=$HOME/dependencies/include
- TA_LIBRARY_PATH=$HOME/dependencies/lib
- LD_LIBRARY_PATH=$HOME/dependencies/lib
install:
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- mkdir $HOME/dependencies
- wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
- tar -xvzf ta-lib-0.4.0-src.tar.gz
- pushd ta-lib && ./configure --prefix=$HOME/dependencies && make install && popd
script:
- make
- make test
14 changes: 6 additions & 8 deletions Makefile
@@ -1,22 +1,20 @@
VERSION?=2.7

build:
python$(VERSION) setup.py build_ext --inplace
python setup.py build_ext --inplace

install:
python$(VERSION) setup.py install
python setup.py install

generate:
python$(VERSION) tools/generate.py > talib/func.pyx
python tools/generate.py > talib/func.pyx

clean:
rm -rf build talib/func*.so talib/abstract*.so talib/common*.so talib/stream*.so talib/*.pyc

perf:
python$(VERSION) tools/perf_talib.py
python tools/perf_talib.py

test:
LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} nosetests-$(VERSION)
LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} nosetests

sdist:
python$(VERSION) setup.py sdist --formats=gztar,zip
python setup.py sdist --formats=gztar,zip
3 changes: 1 addition & 2 deletions requirements_dev.txt
@@ -1,5 +1,4 @@
numpy==1.11.1
-r requirements.txt
beautifulsoup4==4.5.1
mistune==0.7.3
Cython==0.24.1
Pygments==2.1.3
2 changes: 2 additions & 0 deletions requirements_test.txt
@@ -0,0 +1,2 @@
-r requirements.txt
pandas==0.18.1
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -107,8 +107,10 @@
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Cython",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering :: Mathematics",
Expand Down

0 comments on commit 821293f

Please sign in to comment.