<commit_before>#!/bin/bash
set -e

if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    #mvn deploy --settings deploy-settings.xml -P release -Dmaven.test.skip=true;
    VERSION=$(./bin/project-version.sh 2>/dev/null);
    export VERSION
    if [[ "$VERSION" ]]; then
        echo "###### Building Docker image for uIAM $VERSION";
        echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
        docker build -t softinstigate/uiam:$VERSION . ;
        if [[ $VERSION != *-SNAPSHOT ]]; then
            docker push softinstigate/uiam:$VERSION;
        fi
        echo "###### Branch is $TRAVIS_BRANCH";
        if [ "$TRAVIS_BRANCH" == "master" ]; then
            echo "###### On master branch. Tagging image softinstigate/uiam:$VERSION as latest";
            docker tag softinstigate/uiam:$VERSION softinstigate/uiam:latest;
            docker push softinstigate/uiam:latest;
            #echo "###### Publishing Maven site at http://softinstigate.github.io/uiam/project-info.html";
            #mvn site --settings deploy-settings.xml -P report -Dmaven.test.skip=true;
        fi
    else
        echo "###### ERROR! Variable VERSION is undefined";
        exit 1;
    fi
fi<commit_msg>mvn deploy --settings settings.xml<commit_after>#!/bin/bash
set -e

if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    mvn deploy --settings settings.xml -Dmaven.test.skip=true;
    VERSION=$(./bin/project-version.sh 2>/dev/null);
    export VERSION
    if [[ "$VERSION" ]]; then
        echo "###### Building Docker image for uIAM $VERSION";
        echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
        docker build -t "softinstigate/uiam:$VERSION" . ;
        if [[ $VERSION != *-SNAPSHOT ]]; then
            docker push "softinstigate/uiam:$VERSION";
        fi
        echo "###### Branch is $TRAVIS_BRANCH";
        if [ "$TRAVIS_BRANCH" == "master" ]; then
            echo "###### On master branch. Tagging image softinstigate/uiam:$VERSION as latest";
            docker tag "softinstigate/uiam:$VERSION" softinstigate/uiam:latest;
            docker push softinstigate/uiam:latest;
            #echo "###### Publishing Maven site at http://softinstigate.github.io/uiam/project-info.html";
            #mvn site --settings deploy-settings.xml -P report -Dmaven.test.skip=true;
        fi
    else
        echo "###### ERROR! Variable VERSION is undefined";
        exit 1;
    fi
fi
{'fraction_non_alphanumeric': 0.14603960396039603, 'fraction_numerical': 0.0016501650165016502, 'mean_word_length': 2.5609397944199705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '1264646', 'n_tokens_mistral': 780, 'n_tokens_neox': 736, 'n_words': 192}