<commit_before>#!/usr/bin/env bash

# find the directory containing this code
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
_utilities="$dir/utils.sh"
if [ ! -r "$_utilities" ]; then
  echo "Tooling not found : $_utilities"
  exit 1
fi

. "$_utilities"

#
# build docker image
#

_info "Generating ssh key"
rm -f "$sshPk" "$sshPk.pub"
ssh-keygen -q -t rsa -N "" -f "$sshPk" &&
  chmod 700 "$sshPk";
checkForError "Ssh key generation failed"
find . -name '*provisionner*' -exec ls -la {} \;

# Pull from image
_info "Get parent image"
docker pull ${distro}:${version}

# Build image
_info "Build image"
docker build --rm=true --file=Dockerfile.${distro}-${version} --tag=${distro}-${version}:ansible_test .
checkForError "Build image failed"<commit_msg>fix path for test scripts used by travis<commit_after>#!/usr/bin/env bash

# find the directory containing this code
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
_utilities="$dir/utils.sh"
if [ ! -r "$_utilities" ]; then
  echo "Tooling not found : $_utilities"
  exit 1
fi

. "$_utilities"

#
# build docker image
#

_info "Generating ssh key"
rm -f "$sshPk" "$sshPk.pub"
ssh-keygen -q -t rsa -N "" -f "$sshPk" &&
  chmod 700 "$sshPk";
checkForError "Ssh key generation failed"
find . -name '*provisionner*' -exec ls -la {} \;

# Pull from image
_info "Get parent image"
docker pull ${distro}:${version}

# Build image
_info "Build image"
docker build --rm=true --file=${dir}/Dockerfile.${distro}-${version} --tag=${distro}-${version}:ansible_test .
checkForError "Build image failed"
{'fraction_non_alphanumeric': 0.17792207792207793, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 3.98705501618123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2097319', 'n_tokens_mistral': 593, 'n_tokens_neox': 556, 'n_words': 174}