<commit_before>#!/bin/bash -e
cd $(dirname $0)

USER="root"
HOST="10.10.10.100"

ssh -o StrictHostKeyChecking=no ${USER}@${HOST} echo -n
DIR=$(ssh ${USER}@${HOST} "mktemp -d /tmp/build.XXXXXX")

scp -qr . ${USER}@${HOST}:${DIR}
ssh ${USER}@${HOST} "
 cd ${DIR} &&
 cp resources/config/local.ci.php resources/config/local.php
 composer -n install &&
 phpunit -d display_errors=1
"
ssh ${USER}@${HOST} "rm -rf ${DIR}"<commit_msg>Adjust build script<commit_after>#!/bin/bash -e
cd $(dirname $0)

USER="root"
HOST="10.10.10.100"

ssh -o StrictHostKeyChecking=no ${USER}@${HOST} echo -n
DIR=$(ssh ${USER}@${HOST} "mktemp -d /tmp/build.XXXXXX")

scp -qr . ${USER}@${HOST}:${DIR}
ssh ${USER}@${HOST} "
 cd ${DIR} &&
 cp resources/config/local.ci.php resources/config/local.php &&
 composer -n install &&
 scripts/cm.php app setup &&
 phpunit -d display_errors=1
"
ssh ${USER}@${HOST} "rm -rf ${DIR}"
{'fraction_non_alphanumeric': 0.23094170403587444, 'fraction_numerical': 0.02466367713004484, 'mean_word_length': 4.616352201257862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5161519', 'n_tokens_mistral': 383, 'n_tokens_neox': 354, 'n_words': 82}