diff --git a/.travis.yml b/.travis.yml index f5c99a7..7b38b2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,16 @@ -language: java \ No newline at end of file +language: java + +sudo: required + +services: + - docker + +script: + - mvn package + +after_success: + - docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD + - if [ "$TRAVIS_BRANCH" == "master" ]; then + docker build -t plantuml/plantuml-server:latest . ; + docker push plantuml/plantuml-server:latest; + fi