<commit_before>#!/bin/bash

set -ve

cd "$(dirname $0)/.."

scripts/get-cmake.sh
export PATH="$(pwd)/tools/cmake/bin:$PATH"

upload_artifacts=

if [ "$CC" = "gcc" ]; then
    export CC=gcc-6
    export CXX=g++-6
    upload_artifacts=1
fi

scripts/build.sh --all --release --tests --verbose --werror

server/build/release/src/tests/run_tests

if [ -n "$upload_artifacts" ]; then
    scripts/upload.sh
fi<commit_msg>enable api tests in travis<commit_after>#!/bin/bash

set -ve

cd "$(dirname $0)/.."

scripts/get-deadbeef.sh
scripts/get-cmake.sh
export PATH="$(pwd)/tools/cmake/bin:$PATH"

upload_artifacts=

if [ "$CC" = "gcc" ]; then
    export CC=gcc-6
    export CXX=g++-6
    upload_artifacts=1
fi

scripts/build.sh --all --release --tests --verbose --werror

server/build/release/src/tests/run_tests

(cd api/tests; yarn install; yarn run test)

if [ -n "$upload_artifacts" ]; then
    scripts/upload.sh
fi
{'fraction_non_alphanumeric': 0.17142857142857143, 'fraction_numerical': 0.008791208791208791, 'mean_word_length': 3.3798076923076925, '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': '7022987', 'n_tokens_mistral': 365, 'n_tokens_neox': 344, 'n_words': 77}