Skip to content

Commit

Permalink
Merge pull request #12 from astrofrog/conda
Browse files Browse the repository at this point in the history
Use conda instead of wheels
  • Loading branch information
astrofrog committed Oct 22, 2014
2 parents ed08ca3 + d9c93a4 commit e0b42aa
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,27 @@ python:
- 2.7
- 3.2
- 3.3

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'
- 3.4

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

# 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

# Make sure that interactive matplotlib backends work
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

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 e0b42aa

Please sign in to comment.