Skip to content

Commit

Permalink
Merge pull request #124 from developmentseed/faster_travis_tests
Browse files Browse the repository at this point in the history
Faster travis tests
  • Loading branch information
Scisco committed Oct 29, 2015
2 parents a4b1dcc + c0ae5e8 commit 50f1d20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
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

0 comments on commit 50f1d20

Please sign in to comment.