<commit_before>#!/bin/bash

set -e -x -o pipefail

# test for successful release build
dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent}

# test for successful 32-bit build
if [ "$DC" == "dmd" ]; then
	dub build --combined --arch=x86
fi

if [ "$DC" == "ldc2" ] && [ "$VIBED_DRIVER" == "vibe-core" ]; then
	echo "Unit tests skipped until DUB 1.2.0 is out..."
	#dub test :data --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :core --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :mongodb --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :redis --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :diet --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :web --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :utils --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :http --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :mail --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :stream --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :crypto --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :textfilter --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	#dub test :inet --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
else
	dub test --combined --compiler=$DC --config=${VIBED_DRIVER=libevent}
fi

if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
    for ex in $(\ls -1 examples/); do
        echo "[INFO] Building example $ex"
        (cd examples/$ex && dub build --compiler=$DC && dub clean)
    done
fi
if [ ${RUN_TEST=1} -eq 1 ]; then
    for ex in `\ls -1 tests/`; do
        echo "[INFO] Running test $ex"
        (cd tests/$ex && dub --compiler=$DC && dub clean)
    done
fi<commit_msg>Actually use the selected CI test configuration for tests and examples.<commit_after>#!/bin/bash

set -e -x -o pipefail

# test for successful release build
dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent}

# test for successful 32-bit build
if [ "$DC" == "dmd" ]; then
	dub build --combined --arch=x86 --config=${VIBED_DRIVER=libevent}
fi

if [ "$DC" == "ldc2" ] && [ "$VIBED_DRIVER" == "vibe-core" ]; then
	dub test :data --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :core --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :mongodb --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :redis --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :diet --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :web --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :utils --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :http --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :mail --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :stream --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :crypto --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :textfilter --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
	dub test :inet --compiler=$DC --override-config=vibe-d:core/${VIBED_DRIVER=libevent}
else
	dub test --combined --compiler=$DC --config=${VIBED_DRIVER=libevent}
fi

if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
    for ex in $(\ls -1 examples/); do
        echo "[INFO] Building example $ex"
        (cd examples/$ex && dub build --compiler=$DC --override-config=vibe-d:core/$VIBED_DRIVER && dub clean)
    done
fi
if [ ${RUN_TEST=1} -eq 1 ]; then
    for ex in `\ls -1 tests/`; do
        echo "[INFO] Running test $ex"
        (cd tests/$ex && dub --compiler=$DC --override-config=vibe-d:core/$VIBED_DRIVER && dub clean)
    done
fi
{'fraction_non_alphanumeric': 0.18004866180048662, 'fraction_numerical': 0.006082725060827251, 'mean_word_length': 4.164572864321608, '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': '5848287', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1554, 'n_words': 343}