-
Notifications
You must be signed in to change notification settings - Fork 147
/
.travis.yml
29 lines (24 loc) · 928 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
sudo: required
services:
- docker
before_script:
- docker build --file="travis-dockerfile" -t "developmentseed/landsat-util:travis" .
script:
- docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests
deploy:
provider: pypi
user: devseed
password:
secure: WtawFW/999XYszmZfj1Qk82l00OSyP2JBVOOGCERrW1gVO7MYtYsgP31HKRSzNTCTHJNVDpdK4WZWY6zPQqC3l2UfWYYsvRn0hCoI8AJxE5VCUEg6Ccpe6fMJuhp1pq6Zy7yrfBSZcOB9aqSHLBJsunD2o3mNlTC8WV8vNK74ck=
on:
repo: developmentseed/landsat-util
branch: master
after_deploy:
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Start Docker Hub Push"
VER=$(python -c "import landsat; print landsat.__version__")
docker build . -t developmentseed/landsat-util:$VER
docker push developmentseed/landsat-util:$VER
fi
docker push developmentseed/landsat-util:travis