<commit_before>language: java

addons:
  apt:
    packages:
    - xml2

sudo: required

jdk:
  - oraclejdk8
  
services:
  - docker

script:
  - mvn clean package docker:build

branches:
  only:
  - master
  - develop

after_success:
  - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" 
  - export REPO=parking-api
  - export VERSION=`xml2 < pom.xml  | grep /project/version= | sed 's/.*=//'`
  - if [ "$TRAVIS_BRANCH" == "master" ]; then 
        docker tag $REPO gustajz/$REPO;
        docker tag $REPO gustajz/$REPO:$VERSION;
        docker push gustajz/$REPO:latest;
        docker push gustajz/$REPO:$VERSION;
    else if [ "$TRAVIS_BRANCH" == "develop" ]; then
        docker tag $REPO gustajz/$REPO:snapshot;
        docker push gustajz/$REPO:snapshot;
    fi

cache:
  directories:
    - $HOME/.m2<commit_msg>push apenas para branch master e develop<commit_after>language: java

addons:
  apt:
    packages:
    - xml2

sudo: required

jdk:
  - oraclejdk8
  
services:
  - docker

script:
  - mvn clean package docker:build

branches:
  only:
  - master
  - develop

after_success:
  - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" 
  - export REPO=parking-api
  - export VERSION=`xml2 < pom.xml  | grep /project/version= | sed 's/.*=//'`
  - if [ "$TRAVIS_BRANCH" == "master" ]; then 
        docker tag $REPO gustajz/$REPO;
        docker tag $REPO gustajz/$REPO:$VERSION;
        docker push gustajz/$REPO:latest;
        docker push gustajz/$REPO:$VERSION;
    fi
  - if [ "$TRAVIS_BRANCH" == "develop" ]; then 
        docker tag $REPO gustajz/$REPO:snapshot;
        docker push gustajz/$REPO:snapshot;
    fi

cache:
  directories:
    - $HOME/.m2
{'fraction_non_alphanumeric': 0.13020214030915578, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 2.6907894736842106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3889137', 'n_tokens_mistral': 668, 'n_tokens_neox': 623, 'n_words': 143}