Skip to content

Commit

Permalink
use apt-get install
Browse files Browse the repository at this point in the history
  • Loading branch information
Scisco committed Mar 24, 2016
1 parent f44b72b commit cd21dd7
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
language: python
sudo: false

cache:
directories:
- ~/.cache/pip

addons:
apt:
packages:
- libgdal1h
- gdal-bin
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran

env:
global:
- secure: QsF7ignSAbH/WCyO6v9bw1exmCWDQR0DqmHkwJ5swc9N44OOOzbWGsaMSYB5y9h+d70fz4arbxQDhsk2KvX4Zd1/2YIMOrIsbgDYeegpkhVPgyQNPKmVqiX+Tb47t1C/TgkC7A07tiPpuefYcLNMZ8gzz7oKhh1UKapYftqzZ+g=
Expand All @@ -24,17 +13,22 @@ env:
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels

before_install:
- sudo apt-get update -q
- sudo apt-get install --yes python-skimage python-numpy python-scipy libgdal1h gdal-bin libgdal-dev libatlas-dev libatlas-base-dev gfortran
- pip install -U pip
- pip install wheel
- sed -i 's/numpy.*//g' /landsat/requirements.txt
- sed -i 's/scipy.*//g' /landsat/requirements.txt
- sed -i 's/scikit-image.*//g' /landsat/requirements.txt
- sed -i 's/matplotlib.*//g' /landsat/requirements.txt


install:
- pip install -r requirements-dev.txt
- pip install -e .


script:
- nosetests
- python setup.py test

deploy:
provider: pypi
Expand Down

0 comments on commit cd21dd7

Please sign in to comment.