Skip to content

Commit

Permalink
Use conda in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
hargup committed Nov 7, 2014
1 parent 05d2920 commit 8bd45a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,27 @@

language: python

python:
- 2.7
env:
- PYTHON=2.7

before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
- conda update --yes conda
- conda create -n testenv --yes pip python=$PYTHON
- source activate testenv
# Pillow (or PIL/imaging) is necessary for scipy.misc.imread to exist
- conda install --yes --quiet numpy scipy imaging
- pip install pytest pytest-cov
- pip install flake8

install:
- python setup.py install

script:
- py.test agv_cv
- py.test --cov agv_cv
- flake8 --exit-zero agv_cv
after_success:
- coveralls
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
packages=['agv_cv'],
install_requires=[
'scipy',
'pillow',
'numpy',
],
)

0 comments on commit 8bd45a5

Please sign in to comment.