Skip to content

Commit

Permalink
Use conda instead of wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Oct 22, 2014
1 parent ed08ca3 commit 790c33e
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,21 @@ python:
- 2.7
- 3.2
- 3.3
- 3.4

env:
global:
- PIP_WHEEL_COMMAND="pip install --find-links http://wheels.astropy.org/ --use-wheel --use-mirrors"
matrix:
- SETUP_CMD='test'

matrix:
include:
- python: 2.7
env: SETUP_CMD='cov'

before_install:
- pip install setuptools --upgrade
- pip install pip --upgrade
- pip install wheel
- if [[ $SETUP_CMD == 'cov' ]]; then pip install pytest -q --use-mirrors; fi
- if [[ $SETUP_CMD == 'cov' ]]; then pip install pytest-cov -q --use-mirrors; fi
- if [[ $SETUP_CMD == 'cov' ]]; then pip install coveralls -q --use-mirrors; fi

before_install: # Install conda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda

install:
- pip install psutil
- $PIP_WHEEL_COMMAND "numpy==1.8.0"
- $PIP_WHEEL_COMMAND "matplotlib==1.3.0"
- conda install --yes pip pytest numpy matplotlib psutil
- pip install coveralls pytest-cov

script:
- if [[ $SETUP_CMD == 'test' ]]; then py.test psrecord; fi
- if [[ $SETUP_CMD == 'cov' ]]; then py.test --cov psrecord; fi
- py.test --cov psrecord

after_success:
- if [[ $SETUP_CMD == 'cov' ]]; then coveralls; fi
- coveralls

0 comments on commit 790c33e

Please sign in to comment.