<commit_before>#!/bin/bash


sudo sed -i "s/SQLALCHEMY_DATABASE_URI = .*$/SQLALCHEMY_DATABASE_URI = \"postgresql:\/\/$db_user:$db_pass@test.ecrins-parcnational.net:5432\/$db_name\"/" $TRAVIS_BUILD_DIR/backend/tests/travis_test/geonature_config_tests.toml

sudo cp $TRAVIS_BUILD_DIR/backend/tests/travis_test/geonature_config_tests.toml $TRAVIS_BUILD_DIR/config/geonature_config.toml

export PGPASSWORD=$db_pass;psql -U $db_user -h test.ecrins-parcnational.net -d $db_name -c "TRUNCATE gn_synthese.synthese CASCADE;"
export PGPASSWORD=<PASSWORD>;psql -U $db_user -h test.ecrins-parcnational.net -d $db_name -c "DELETE FROM gn_commons.t_modules WHERE module_code = 'OCCTAX'"

python ../../../geonature_cmd.py install_command

geonature install_gn_module $TRAVIS_BUILD_DIR/contrib/occtax occtax --build=false

geonature generate_frontend_tsconfig
geonature generate_frontend_modules_route
geonature update_configuration --build=false




<commit_msg>test doc front<commit_after>#!/bin/bash


sudo sed -i "s/SQLALCHEMY_DATABASE_URI = .*$/SQLALCHEMY_DATABASE_URI = \"postgresql:\/\/$db_user:$db_pass@test.ecrins-parcnational.net:5432\/$db_name\"/" $TRAVIS_BUILD_DIR/backend/tests/travis_test/geonature_config_tests.toml

sudo cp $TRAVIS_BUILD_DIR/backend/tests/travis_test/geonature_config_tests.toml $TRAVIS_BUILD_DIR/config/geonature_config.toml

export PGPASSWORD=$db_pass;psql -U $db_user -h test.ecrins-parcnational.net -d $db_name -c "TRUNCATE gn_synthese.synthese CASCADE;"
export PGPASSWORD=$<PASSWORD>;psql -U $db_user -h test.ecrins-parcnational.net -d $db_name -c "DELETE FROM gn_commons.t_modules WHERE module_code = 'OCCTAX'"

python ../../../geonature_cmd.py install_command

geonature install_gn_module $TRAVIS_BUILD_DIR/contrib/occtax occtax --build=false

cd ../../../frontend

cp src/custom/custom.scss.sample src/custom/custom.scss
cp src/custom/components/footer/footer.component.ts.sample src/custom/components/footer/footer.component.ts
cp src/custom/components/footer/footer.component.html.sample src/custom/components/footer/footer.component.html
cp src/custom/components/introduction/introduction.component.ts.sample src/custom/components/introduction/introduction.component.ts
cp src/custom/components/introduction/introduction.component.html.sample src/custom/components/introduction/introduction.component.html


geonature generate_frontend_tsconfig
geonature generate_frontend_modules_route
geonature update_configuration --build=false





{'fraction_non_alphanumeric': 0.11566558441558442, 'fraction_numerical': 0.003246753246753247, 'mean_word_length': 5.98300283286119, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7307087', 'n_tokens_mistral': 913, 'n_tokens_neox': 859, 'n_words': 127}