From 4fe6381fcf67a3e5ea7f97ab9ca9e4c6a94f2e90 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Thu, 7 Jan 2016 11:03:24 -0800 Subject: [PATCH] updated travis --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 46286b5e5c..ebdb7ec230 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,10 @@ before_install: - gem install bundler install: - - docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD script: - mvn verify -Psamples - - docker build -t $DOCKER_IMAGE_NAME ./modules/swagger-generator - - if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi && docker push $DOCKER_IMAGE_NAME + - if [ ! -z "$TRAVIS_PULL_REQUEST" ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_IMAGE_NAME ./modules/swagger-generator && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi && docker push $DOCKER_IMAGE_NAME && fi env: - DOCKER_IMAGE_NAME=swaggerapi/swagger-generator