language: python

python:
    - 2.6
    - 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'

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:
   - pip install psutil
   - $PIP_WHEEL_COMMAND "numpy==1.8.0"
   - $PIP_WHEEL_COMMAND "matplotlib==1.3.0"

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

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

language: python

python:
    - 2.6
    - 2.7
    - 3.2
    - 3.3
    - 3.4

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:
    - conda install --yes pip pytest numpy matplotlib psutil
    - pip install coveralls pytest-cov

script:
   - py.test --cov psrecord

after_success:
  - coveralls

Use conda instead of wheels
Use conda instead of wheels