image: ubuntu:focal stages: - testall - testsingle variables: POSTGRES_DB: postgres POSTGRES_USER: flectra POSTGRES_PASSWORD: flectra POSTGRES_HOST: postgres POSTGRES_PORT: "5432" services: - name: postgres:12-alpine 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 - apt-get install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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 base_cancel_confirm,base_technical_features,base_menu_visibility_restriction,mass_editing,base_optional_quick_create,filter_multi_user,barcode_action,base_tier_validation_server_action,base_tier_validation,document_quick_access,base_export_manager,sequence_check_digit,base_tier_validation_formula,sequence_reset_period,base_search_custom_field_filter,date_range,base_tier_validation_forward,default_multi_user,base_revision,multi_step_wizard,base_import_security_group --stop-after-init --log-level error --log-handler flectra.addons.base_cancel_confirm:TEST --log-handler flectra.addons.base_technical_features:TEST --log-handler flectra.addons.base_menu_visibility_restriction:TEST --log-handler flectra.addons.mass_editing:TEST --log-handler flectra.addons.base_optional_quick_create:TEST --log-handler flectra.addons.filter_multi_user:TEST --log-handler flectra.addons.barcode_action:TEST --log-handler flectra.addons.base_tier_validation_server_action:TEST --log-handler flectra.addons.base_tier_validation:TEST --log-handler flectra.addons.document_quick_access:TEST --log-handler flectra.addons.base_export_manager:TEST --log-handler flectra.addons.sequence_check_digit:TEST --log-handler flectra.addons.base_tier_validation_formula:TEST --log-handler flectra.addons.sequence_reset_period:TEST --log-handler flectra.addons.base_search_custom_field_filter:TEST --log-handler flectra.addons.date_range:TEST --log-handler flectra.addons.base_tier_validation_forward:TEST --log-handler flectra.addons.default_multi_user:TEST --log-handler flectra.addons.base_revision:TEST --log-handler flectra.addons.multi_step_wizard:TEST --log-handler flectra.addons.base_import_security_group:TEST " test_module_base_cancel_confirm: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_cancel_confirm - psql -h psql -U flectra -d test_base_cancel_confirm -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_cancel_confirm - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_cancel_confirm - 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_cancel_confirm --test-enable -i base_cancel_confirm --stop-after-init --log-level error --log-handler flectra.addons.base_cancel_confirm: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_mass_editing: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_mass_editing - psql -h psql -U flectra -d test_mass_editing -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_mass_editing - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_mass_editing - 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_mass_editing --test-enable -i mass_editing --stop-after-init --log-level error --log-handler flectra.addons.mass_editing: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_filter_multi_user: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_filter_multi_user - psql -h psql -U flectra -d test_filter_multi_user -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_filter_multi_user - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_filter_multi_user - 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_filter_multi_user --test-enable -i filter_multi_user --stop-after-init --log-level error --log-handler flectra.addons.filter_multi_user: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_base_tier_validation_server_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_server_action - psql -h psql -U flectra -d test_base_tier_validation_server_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_base_tier_validation_server_action - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation_server_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_base_tier_validation_server_action --test-enable -i base_tier_validation_server_action --stop-after-init --log-level error --log-handler flectra.addons.base_tier_validation_server_action: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_document_quick_access: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_document_quick_access - psql -h psql -U flectra -d test_document_quick_access -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_document_quick_access - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_document_quick_access - 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_document_quick_access --test-enable -i document_quick_access --stop-after-init --log-level error --log-handler flectra.addons.document_quick_access:TEST" test_module_base_export_manager: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_export_manager - psql -h psql -U flectra -d test_base_export_manager -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_export_manager - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_export_manager - 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_export_manager --test-enable -i base_export_manager --stop-after-init --log-level error --log-handler flectra.addons.base_export_manager:TEST" test_module_sequence_check_digit: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_check_digit - psql -h psql -U flectra -d test_sequence_check_digit -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_check_digit - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_sequence_check_digit - 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_check_digit --test-enable -i sequence_check_digit --stop-after-init --log-level error --log-handler flectra.addons.sequence_check_digit: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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" 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_default_multi_user: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_default_multi_user - psql -h psql -U flectra -d test_default_multi_user -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_default_multi_user - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_default_multi_user - 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_default_multi_user --test-enable -i default_multi_user --stop-after-init --log-level error --log-handler flectra.addons.default_multi_user: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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_import_security_group: 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 - apt install -y expect-dev - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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_import_security_group - psql -h psql -U flectra -d test_base_import_security_group -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_import_security_group - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_import_security_group - 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_import_security_group --test-enable -i base_import_security_group --stop-after-init --log-level error --log-handler flectra.addons.base_import_security_group:TEST"