From 43928a7726cc1e0e0760c8ef32e3f564c4250ae1 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Mon, 4 Jan 2016 20:25:45 -0800 Subject: [PATCH] enabled docker --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 73dc7fdd26..147359d47a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ -sudo: false +sudo: required language: java -script: mvn verify -Psamples jdk: - oraclejdk7 +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 +env: + - DOCKER_IMAGE_NAME=swaggerapi/swagger-generator