language: python
python:
- '3.5'
before_install:
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
  -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
  -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
install:
- conda create -q -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install --yes numpy scipy matplotlib
- pip install -r requirements_dev.txt
- python setup.py install
script:
- py.test --flake8 --cov-report html --cov pysra tests/
after_success:
- coveralls
deploy:
  provider: pypi
  user: arkottke
  password:
    secure: XJ68lufBupCicSgg7mnA85+IsXVHgqKOV3ZfUwjruKh4J/5e67XJXfKZs5vx66VL872bjoID/NPZ2TpGlf48MMT4leIokPmO0IZy0B4Ixsar0ABq1z76x3YUvFYLIxWGGyd1wtFDZfJiCYHJoO98I/CT/g2Uphb7Fzux77vYGok=
  on:
    tags: true
    distributions: sdist bdist_wheel
    repo: arkottke/pysra

language: python
python:
- '3.6'
install:
- pip install -r requirements_dev.txt
- python setup.py install
script:
- py.test --flake8 --cov-report html --cov pysra tests/
after_success:
- coveralls
deploy:
  provider: pypi
  user: arkottke
  password:
    secure: XJ68lufBupCicSgg7mnA85+IsXVHgqKOV3ZfUwjruKh4J/5e67XJXfKZs5vx66VL872bjoID/NPZ2TpGlf48MMT4leIokPmO0IZy0B4Ixsar0ABq1z76x3YUvFYLIxWGGyd1wtFDZfJiCYHJoO98I/CT/g2Uphb7Fzux77vYGok=
  on:
    tags: true
    distributions: sdist bdist_wheel
    repo: arkottke/pysra

Use native Python instead of conda.
Use native Python instead of conda.