Newer
Older
variables:
ODOO_POPULATE_MODEL: account.move
ODOO_POPULATE_PREREQ: l10n_us
ODOO_SCRIPTS_MODULE_LIST_TESTS: account,account_fiscal_year,account_period,date_range
# those are account’s prerequisites, install them first to avoid running their tests
ODOO_SCRIPTS_MODULE_LIST: base_setup,product,analytic,portal,digest
include:

Vincent Hatakeyama
committed
install-modules-with-demo:
extends: .base-run
script:
- logfile=$(tempfile --suffix=.log)
# install module
- $CI_PROJECT_DIR/odoo_scripts/start --db_host=postgres --database odoo
--max-cron-threads=0 --stop-after-init --init $CI_PROJECT_NAME $ADDONS_PATH
--db_user=odoo $_TEST_OPTIONS $TEST_OPTIONS 2>&1| tee $logfile | sed -e 's/\(.*\)
\(ERROR\) \(.*\)/\o033[2m\1\o033[22m \o033[31m\o033[7m\2\o033[27m \3\o033[0m/'
- grep ' ERROR ' -F $logfile -c -v