Skip to content

Commit

Permalink
replace Python 3.4 with Python 3.6 on Travis
Browse files Browse the repository at this point in the history
In order to add Python 3.6 with all of the dependencies from conda, it
is necessary to use the conda-forge channel (shapely doesn't seem to be
in defaults, despite what the Aanconda documentation claims).

Unfortunately, conda-forge doesn't have the packages for Python 3.4, and
conda isn't correctly figuring out to build from defaults for Python
3.4.
  • Loading branch information
njwilson23 committed Mar 19, 2017
1 parent 17a11e7 commit 2b7b359
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,27 @@ language: python

python:
- "2.7"
- "3.4"
- "3.5"

addons:
apt:
packages:
- libproj-dev # otherwise gdal raises an error
- "3.6"

before_install:
- "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/miniconda2/bin:$PATH"
- "conda update --yes conda"
- "conda info -a"
- "conda info --all"

install:
- "conda create --yes -n test-env python=$TRAVIS_PYTHON_VERSION pip>=8.1 numpy>=1.10 cython>=0.25 pyproj>=1.9 gdal>=2.1 libgdal>=2.1 coverage>=4.2 shapely>=1.5"
- "conda create --yes --name test-env --channel conda-forge python=$TRAVIS_PYTHON_VERSION numpy cython gdal pyproj shapely coverage"
- "source activate test-env"
- "pip install -r requirements.txt"
- "pip install coveralls"
- "pip install . --no-deps"
- "rm -rf karta/" # clean-up to workaround coverage.py scanning karta/ dir
# while karta module is installed by pip elsewhere

script:
coverage run --source=karta tests/runtests.py && coverage report

after_success:
coveralls
script: coverage run --source=karta tests/runtests.py && coverage report
after_success: coveralls
sudo: false # container-based testing

sudo: # container-based testing
false

0 comments on commit 2b7b359

Please sign in to comment.