Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 4 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,10 @@
language: python
sudo: required

sudo: false

cache:
directories:
- ~/.cache/pip

env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels

virtualenv:
system_site_packages: true

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

python:
- '2.7'

before_install:
- pip install -U pip
- pip install wheel

install:
- "pip wheel -r requirements/dev.txt"
- "pip install -r requirements/dev.txt"
services:
- docker

script:
- nosetests
- docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests

deploy:
provider: pypi
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ADD landsat /usr/local/lib/python2.7/dist-packages/landsat
ADD bin/landsat /usr/local/bin/
ADD . /landsat
RUN cd /landsat && pip install -r requirements/docker.txt

RUN pip install pdoc>=0.3.1 nose>=1.3.7 coverage>=4.0 Sphinx>=1.3.1 wheel>=0.26.0 mock>=1.3.0
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ To run the documentation locally::
$ cd docs
$ make html

Travis Tests
++++++++++++

To speed up testing on travis, we use a docker image. If you add new packages, to ensure that tests will pass on Travis, make sure to rebuild the docker image and push it to DockerHub with `travis` tag.

Recently Added Features
+++++++++++++++++++++++

Expand Down