sudo: required

language: java
jdk:
  - oraclejdk8
node_js: "8.11.3"

services:
  - docker

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    mvn -Pprod package docker:build;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:latest;
    fi
  - if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
    mvn -Pprod package docker:build;
    docker tag microcks/microcks microcks/microcks:$TRAVIS_TAG;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:$TRAVIS_TAG;
    fi
  - if [ "$TRAVIS_BRANCH" !=  "master" && "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then
    mvn -Pprod package docker:build;
    docker tag microcks/microcks microcks/microcks:$TRAVIS_BRANCH;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:$TRAVIS_BRANCH;
    fi
sudo: required

language: java
jdk:
  - oraclejdk8
node_js: "8.11.3"

services:
  - docker

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    mvn -Pprod package docker:build;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:latest;
    fi
  - if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
    mvn -Pprod package docker:build;
    docker tag microcks/microcks microcks/microcks:$TRAVIS_TAG;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:$TRAVIS_TAG;
    fi
  - if [ "$TRAVIS_BRANCH" ==  "new-ux-0.7.x" ]; then
    mvn -Pprod package docker:build;
    docker tag microcks/microcks microcks/microcks:new-ux-latest;
    docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
    docker push microcks/microcks:new-ux-latest;
    fi

Fix branch and docker tag name for new-ux-0.7.x
Fix branch and docker tag name for new-ux-0.7.x