Skip to content

Commit

Permalink
add docker hub push to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Scisco committed Sep 22, 2015
1 parent dffd733 commit 560baca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
language: python

python:
- '2.7'

sudo: required

services:
- docker

before_install:
- sudo add-apt-repository -y ppa:ubuntugis/ppa
- sudo apt-get update -qq
Expand All @@ -12,6 +19,7 @@ before_install:
- conda update --yes conda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm

install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib scikit-image
six nose dateutil
Expand All @@ -20,8 +28,10 @@ install:
- pip uninstall requests --yes
- pip install requests==2.5.3
- pip install -r requirements/travis.txt

script:
- nosetests

deploy:
provider: pypi
user: devseed
Expand All @@ -31,3 +41,11 @@ deploy:
tags: true
repo: developmentseed/landsat-util
branch: master

after_deploy:
if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Start Docker Hub Push"
docker build . -t developmentseed/landsat-util:0.7.0
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker push developmentseed/landsat-util:0.7.0
fi

0 comments on commit 560baca

Please sign in to comment.