<commit_before>#!/bin/bash

set -e

set BLENDED_VERSION=$(cat $TRAVIS_BUILD_DIR/version.txt)

git clone https://github.com/woq-blended/blended.container.git $TRAVIS_BUILD_DIR/container
cd $TRAVIS_BUILD_DIR/container
git checkout master
docker --version
ps -ef | grep docker

rm ~/.docker/config.json
mkdir -p $TRAVIS_BUILD_DIR/container/.mvn
echo "-Ddocker.host=$DOCKER_HOST -Ddocker.port=$DOCKER_PORT" > $TRAVIS_BUILD_DIR/container/.mvn/maven.config

mvn clean install -P docker,itest

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push atooni/blended_mgmt:$BLENDED_VERSION
docker push atooni/blended_node:$BLENDED_VERSION

cd $TRAVIS_BUILD_DIR<commit_msg>Fine tuning .travis.yml for integration tests<commit_after>#!/bin/bash

set -e

set BLENDED_VERSION=$(cat $TRAVIS_BUILD_DIR/version.txt)

git clone https://github.com/woq-blended/blended.container.git $TRAVIS_BUILD_DIR/container
cd $TRAVIS_BUILD_DIR/container
git checkout master
docker --version
ps -ef | grep docker

#Avoid non zero return code
rm -f $HOME/.docker/config.json || true

mkdir -p $TRAVIS_BUILD_DIR/container/.mvn
echo "-Ddocker.host=$DOCKER_HOST -Ddocker.port=$DOCKER_PORT" > $TRAVIS_BUILD_DIR/container/.mvn/maven.config

mvn clean install -P docker,itest

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push atooni/blended_mgmt:$BLENDED_VERSION
docker push atooni/blended_node:$BLENDED_VERSION

cd $TRAVIS_BUILD_DIR
{'fraction_non_alphanumeric': 0.11171662125340599, 'fraction_numerical': 0.0, 'mean_word_length': 5.677272727272728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '182673', 'n_tokens_mistral': 575, 'n_tokens_neox': 538, 'n_words': 111}