Skip to content

Commit

Permalink
use special dockerfile for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Scisco committed Oct 29, 2015
1 parent f4fa584 commit 579a339
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
- docker

before_script:
- docker build -t 'developmentseed/landsat-util:travis' .
- docker build --file="travis-dockerfile" -t "developmentseed/landsat-util:travis" .

script:
- docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests
Expand All @@ -26,3 +26,4 @@ after_deploy:
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker push developmentseed/landsat-util:$VER
fi
docker push developmentseed/landsat-util:travis
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ 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
4 changes: 4 additions & 0 deletions travis-dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM developmentseed/landsat-util:dev
ADD . /test
RUN cd /test && 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

0 comments on commit 579a339

Please sign in to comment.