Skip to content

Commit

Permalink
choose conda channel based on python version
Browse files Browse the repository at this point in the history
  • Loading branch information
njwilson23 committed Mar 19, 2017
1 parent 2b7b359 commit 1b53a4e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
language: python

python:
- "2.7"
- "3.5"
- "3.6"
matrix:
include:
- python: "2.7"
env: CHANNEL=defaults
- python: "3.4"
env: CHANNEL=defaults
- python: "3.5"
env: CHANNEL=defaults
- python: "3.6"
env: CHANNEL=conda-forge

before_install:
- "wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh"
Expand All @@ -14,7 +20,7 @@ before_install:
- "conda info --all"

install:
- "conda create --yes --name test-env --channel conda-forge python=$TRAVIS_PYTHON_VERSION numpy cython gdal pyproj shapely coverage"
- "conda create --yes --name test-env --channel $CHANNEL python=$TRAVIS_PYTHON_VERSION numpy cython gdal pyproj shapely coverage"
- "source activate test-env"
- "pip install -r requirements.txt"
- "pip install coveralls"
Expand Down

0 comments on commit 1b53a4e

Please sign in to comment.