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

# This script build all assets for production environment

# Exit script on any error
set -e

# Find out directory of this script, no matter from where we call it, even via symlinks
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
  DIR="$( cd -P "$( dirname "$SOURCE"  )" && pwd )"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

cd $DIR/..

echo "Updating git submodules..."
git submodule update --init --recursive --force

echo "Updating all PHP dependencies via composer..."
./composer.phar install --dev --optimize-autoloader
./vendor/bin/doctrine-module migrations:migrate --no-interaction > /dev/null<commit_msg>debug travis<commit_after>#!/usr/bin/env bash

# This script build all assets for production environment

# Exit script on any error
set -e

# Find out directory of this script, no matter from where we call it, even via symlinks
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
  DIR="$( cd -P "$( dirname "$SOURCE"  )" && pwd )"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

cd $DIR/..

echo "Updating git submodules..."
git submodule update --init --recursive --force

echo "Updating all PHP dependencies via composer..."
./composer.phar install --dev --optimize-autoloader
./vendor/bin/doctrine-module migrations:migrate --no-interaction > /dev/null
pg_dump --version ; pg_restore --version
which pg_dump
which pg_restore
{'fraction_non_alphanumeric': 0.17211597779148674, 'fraction_numerical': 0.0012338062924120913, 'mean_word_length': 3.870870870870871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2699161', 'n_tokens_mistral': 539, 'n_tokens_neox': 510, 'n_words': 178}