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

set -eu
# https://stackoverflow.com/a/246128/246337
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

echo ""
echo "## generating a demo project"
echo ""

pushd $DIR/..
mix compile
mix raxx.kit --docker demo
popd

pushd $DIR/../demo

echo ""
echo "## getting demo project dependencies inside the container"
echo ""

docker-compose run demo mix deps.get

echo ""
echo "## running tests for demo project inside the container"
echo ""

docker-compose run demo mix test

popd<commit_msg>Add ecto to travis test run<commit_after>#!/usr/bin/env bash

set -eu
# https://stackoverflow.com/a/246128/246337
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

echo ""
echo "## generating a demo project"
echo ""

pushd $DIR/..
mix compile
mix raxx.kit --docker --ecto demo
popd

pushd $DIR/../demo

echo ""
echo "## getting demo project dependencies inside the container"
echo ""

docker-compose run demo mix deps.get

echo ""
echo "## starting all services"
echo ""

docker-compose up -d

echo ""
echo "## running tests for demo project inside the container"
echo ""

docker-compose run demo mix test

# cleanup, for local docker_test runs
docker-compose down

popd
{'fraction_non_alphanumeric': 0.14122448979591837, 'fraction_numerical': 0.02122448979591837, 'mean_word_length': 3.8844621513944224, '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': '4403075', 'n_tokens_mistral': 446, 'n_tokens_neox': 405, 'n_words': 143}