image: ubuntu:jammy stages: - testall - testsingle variables: POSTGRES_DB: postgres POSTGRES_USER: flectra POSTGRES_PASSWORD: flectra POSTGRES_HOST: postgres POSTGRES_PORT: "5432" services: - name: postgres:14-bullseye alias: psql test_all_modules: stage: testall image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_all - psql -h psql -U flectra -d test_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_all - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_all - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_all --test-enable --init multi_step_wizard,base_menu_visibility_restriction,base_substate,base_technical_features,base_search_custom_field_filter,server_action_mass_edit,sequence_reset_period,base_optional_quick_create,base_tier_validation_forward,announcement,base_tier_validation,base_revision,date_range_account,barcode_action,date_range,base_tier_validation_formula --stop-after-init --log-level error --log-handler flectra.addons.multi_step_wizard:TEST --log-handler flectra.addons.base_menu_visibility_restriction:TEST --log-handler flectra.addons.base_substate:TEST --log-handler flectra.addons.base_technical_features:TEST --log-handler flectra.addons.base_search_custom_field_filter:TEST --log-handler flectra.addons.server_action_mass_edit:TEST --log-handler flectra.addons.sequence_reset_period:TEST --log-handler flectra.addons.base_optional_quick_create:TEST --log-handler flectra.addons.base_tier_validation_forward:TEST --log-handler flectra.addons.announcement:TEST --log-handler flectra.addons.base_tier_validation:TEST --log-handler flectra.addons.base_revision:TEST --log-handler flectra.addons.date_range_account:TEST --log-handler flectra.addons.barcode_action:TEST --log-handler flectra.addons.date_range:TEST --log-handler flectra.addons.base_tier_validation_formula:TEST " test_module_multi_step_wizard: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_multi_step_wizard - psql -h psql -U flectra -d test_multi_step_wizard -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_multi_step_wizard - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_multi_step_wizard - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_multi_step_wizard --test-enable -i multi_step_wizard --stop-after-init --log-level error --log-handler flectra.addons.multi_step_wizard:TEST" test_module_base_menu_visibility_restriction: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_menu_visibility_restriction - psql -h psql -U flectra -d test_base_menu_visibility_restriction -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_menu_visibility_restriction - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_menu_visibility_restriction - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_menu_visibility_restriction --test-enable -i base_menu_visibility_restriction --stop-after-init --log-level error --log-handler flectra.addons.base_menu_visibility_restriction:TEST" test_module_base_substate: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_substate - psql -h psql -U flectra -d test_base_substate -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_substate - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_substate - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_substate --test-enable -i base_substate --stop-after-init --log-level error --log-handler flectra.addons.base_substate:TEST" test_module_base_technical_features: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_technical_features - psql -h psql -U flectra -d test_base_technical_features -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_technical_features - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_technical_features - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_technical_features --test-enable -i base_technical_features --stop-after-init --log-level error --log-handler flectra.addons.base_technical_features:TEST" test_module_base_search_custom_field_filter: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_search_custom_field_filter - psql -h psql -U flectra -d test_base_search_custom_field_filter -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_search_custom_field_filter - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_search_custom_field_filter - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_search_custom_field_filter --test-enable -i base_search_custom_field_filter --stop-after-init --log-level error --log-handler flectra.addons.base_search_custom_field_filter:TEST" test_module_server_action_mass_edit: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_server_action_mass_edit - psql -h psql -U flectra -d test_server_action_mass_edit -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_server_action_mass_edit - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_server_action_mass_edit - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_server_action_mass_edit --test-enable -i server_action_mass_edit --stop-after-init --log-level error --log-handler flectra.addons.server_action_mass_edit:TEST" test_module_sequence_reset_period: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_sequence_reset_period - psql -h psql -U flectra -d test_sequence_reset_period -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_sequence_reset_period - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_sequence_reset_period - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_sequence_reset_period --test-enable -i sequence_reset_period --stop-after-init --log-level error --log-handler flectra.addons.sequence_reset_period:TEST" test_module_base_optional_quick_create: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_optional_quick_create - psql -h psql -U flectra -d test_base_optional_quick_create -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_optional_quick_create - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_optional_quick_create - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_optional_quick_create --test-enable -i base_optional_quick_create --stop-after-init --log-level error --log-handler flectra.addons.base_optional_quick_create:TEST" test_module_base_tier_validation_forward: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation_forward - psql -h psql -U flectra -d test_base_tier_validation_forward -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation_forward - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation_forward - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_tier_validation_forward --test-enable -i base_tier_validation_forward --stop-after-init --log-level error --log-handler flectra.addons.base_tier_validation_forward:TEST" test_module_announcement: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_announcement - psql -h psql -U flectra -d test_announcement -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_announcement - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_announcement - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_announcement --test-enable -i announcement --stop-after-init --log-level error --log-handler flectra.addons.announcement:TEST" test_module_base_tier_validation: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation - psql -h psql -U flectra -d test_base_tier_validation -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_tier_validation --test-enable -i base_tier_validation --stop-after-init --log-level error --log-handler flectra.addons.base_tier_validation:TEST" test_module_base_revision: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_revision - psql -h psql -U flectra -d test_base_revision -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_revision - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_revision - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_revision --test-enable -i base_revision --stop-after-init --log-level error --log-handler flectra.addons.base_revision:TEST" test_module_date_range_account: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_date_range_account - psql -h psql -U flectra -d test_date_range_account -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_date_range_account - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_date_range_account - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_date_range_account --test-enable -i date_range_account --stop-after-init --log-level error --log-handler flectra.addons.date_range_account:TEST" test_module_barcode_action: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_barcode_action - psql -h psql -U flectra -d test_barcode_action -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_barcode_action - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_barcode_action - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_barcode_action --test-enable -i barcode_action --stop-after-init --log-level error --log-handler flectra.addons.barcode_action:TEST" test_module_date_range: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_date_range - psql -h psql -U flectra -d test_date_range -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_date_range - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_date_range - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_date_range --test-enable -i date_range --stop-after-init --log-level error --log-handler flectra.addons.date_range:TEST" test_module_base_tier_validation_formula: stage: testsingle when: on_failure image: name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest entrypoint: ["/bin/sh", "-c"] script: - apt-get install -y p7zip-full - su - flectra -c "mkdir ~/others" - sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 - mkdir ${CI_PROJECT_DIR}/ci_data - wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip - export PGPASSWORD="flectra" - createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation_formula - psql -h psql -U flectra -d test_base_tier_validation_formula -f ${CI_PROJECT_DIR}/ci_data/dump.sql - su - flectra -c "mkdir -p ~/.local/share/filestore" - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation_formula - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation_formula - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR} --db_host psql --db_port 5432 --db_user flectra --db_password flectra --database test_base_tier_validation_formula --test-enable -i base_tier_validation_formula --stop-after-init --log-level error --log-handler flectra.addons.base_tier_validation_formula:TEST"