From f4fa584d3fd052ba705aa0d7df6e5ee1118cc6ee Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 29 Oct 2015 12:00:22 -0400 Subject: [PATCH] build docker image first --- .travis.yml | 3 +++ README.rst | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 686db65..ad7d4a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ sudo: required services: - docker +before_script: +- docker build -t 'developmentseed/landsat-util:travis' . + script: - docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests diff --git a/README.rst b/README.rst index 0f15ce9..150181c 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ To run the documentation locally:: 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. +To speed up testing on travis, we use a docker image. To test with docker image locally run: