server-ux/.gitlab-ci.yml

801 lines
39 KiB
YAML
Raw Normal View History

2021-03-23 19:15:27 +00:00
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
2021-07-25 02:12:32 +00:00
--init base_cancel_confirm,filter_multi_user,default_multi_user,sequence_reset_period,sequence_check_digit,base_import_security_group,date_range,base_tier_validation_forward,base_menu_visibility_restriction,barcode_action,multi_step_wizard,base_technical_features,base_tier_validation_formula,base_tier_validation,base_search_custom_field_filter,base_revision,base_export_manager,document_quick_access,mass_editing,base_tier_validation_server_action,chained_swapper,base_optional_quick_create
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-04-28 15:44:37 +00:00
--log-handler flectra.addons.base_cancel_confirm:TEST
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.filter_multi_user:TEST
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.default_multi_user:TEST
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.sequence_reset_period:TEST
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.sequence_check_digit:TEST
--log-handler flectra.addons.base_import_security_group:TEST
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.date_range:TEST
--log-handler flectra.addons.base_tier_validation_forward:TEST
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_menu_visibility_restriction:TEST
--log-handler flectra.addons.barcode_action:TEST
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.multi_step_wizard:TEST
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_technical_features:TEST
--log-handler flectra.addons.base_tier_validation_formula:TEST
--log-handler flectra.addons.base_tier_validation:TEST
--log-handler flectra.addons.base_search_custom_field_filter:TEST
--log-handler flectra.addons.base_revision:TEST
--log-handler flectra.addons.base_export_manager:TEST
--log-handler flectra.addons.document_quick_access:TEST
--log-handler flectra.addons.mass_editing:TEST
--log-handler flectra.addons.base_tier_validation_server_action:TEST
--log-handler flectra.addons.chained_swapper:TEST
--log-handler flectra.addons.base_optional_quick_create:TEST
2021-03-23 19:15:27 +00:00
"
2021-04-28 15:44:37 +00:00
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"
2021-07-25 02:12:32 +00:00
test_module_filter_multi_user:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_filter_multi_user
--test-enable -i filter_multi_user
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.filter_multi_user:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_default_multi_user:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_default_multi_user
--test-enable -i default_multi_user
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.default_multi_user:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_sequence_reset_period:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_sequence_reset_period
--test-enable -i sequence_reset_period
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.sequence_reset_period:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_sequence_check_digit:
2021-04-28 15:44:37 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_sequence_check_digit
--test-enable -i sequence_check_digit
2021-04-28 15:44:37 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.sequence_check_digit:TEST"
2021-04-28 15:44:37 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_import_security_group:
2021-04-28 15:44:37 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_import_security_group
--test-enable -i base_import_security_group
2021-04-28 15:44:37 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_import_security_group:TEST"
2021-04-28 15:44:37 +00:00
2021-07-25 02:12:32 +00:00
test_module_date_range:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_date_range
--test-enable -i date_range
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.date_range:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_tier_validation_forward:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_tier_validation_forward
--test-enable -i base_tier_validation_forward
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_tier_validation_forward:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_menu_visibility_restriction:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_menu_visibility_restriction
--test-enable -i base_menu_visibility_restriction
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_menu_visibility_restriction:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_barcode_action:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_barcode_action
--test-enable -i barcode_action
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.barcode_action:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_multi_step_wizard:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_multi_step_wizard
--test-enable -i multi_step_wizard
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.multi_step_wizard:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_technical_features:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_technical_features
--test-enable -i base_technical_features
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_technical_features:TEST"
2021-03-23 19:15:27 +00:00
2021-05-27 12:13:49 +00:00
test_module_base_tier_validation_formula:
2021-03-23 19:15:27 +00:00
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"
2021-05-27 12:13:49 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:13:49 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:13:49 +00:00
--database test_base_tier_validation_formula
--test-enable -i base_tier_validation_formula
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.base_tier_validation_formula:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_tier_validation:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_tier_validation
--test-enable -i base_tier_validation
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_tier_validation:TEST"
2021-03-23 19:15:27 +00:00
2021-05-27 12:13:49 +00:00
test_module_base_search_custom_field_filter:
2021-03-23 19:15:27 +00:00
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"
2021-05-27 12:13:49 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:13:49 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:13:49 +00:00
--database test_base_search_custom_field_filter
--test-enable -i base_search_custom_field_filter
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-05-27 12:13:49 +00:00
--log-handler flectra.addons.base_search_custom_field_filter:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_revision:
2021-05-26 11:33:18 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-05-26 11:33:18 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-05-26 11:33:18 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_revision
--test-enable -i base_revision
2021-05-26 11:33:18 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_revision:TEST"
2021-05-26 11:33:18 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_export_manager:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_export_manager
--test-enable -i base_export_manager
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_export_manager:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_document_quick_access:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_document_quick_access
--test-enable -i document_quick_access
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.document_quick_access:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_mass_editing:
2021-04-28 15:44:37 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-04-28 15:44:37 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_mass_editing
--test-enable -i mass_editing
2021-04-28 15:44:37 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.mass_editing:TEST"
2021-04-28 15:44:37 +00:00
2021-07-25 02:12:32 +00:00
test_module_base_tier_validation_server_action:
2021-03-23 19:15:27 +00:00
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"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- 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
2021-03-23 19:15:27 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_base_tier_validation_server_action
--test-enable -i base_tier_validation_server_action
2021-03-23 19:15:27 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.base_tier_validation_server_action:TEST"
2021-03-23 19:15:27 +00:00
2021-07-25 02:12:32 +00:00
test_module_chained_swapper:
2021-07-04 02:14:22 +00:00
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"
2021-07-25 02:12:32 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_chained_swapper
- psql -h psql -U flectra -d test_chained_swapper -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-07-04 02:14:22 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-07-25 02:12:32 +00:00
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_chained_swapper
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_chained_swapper
2021-07-04 02:14:22 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-07-25 02:12:32 +00:00
--database test_chained_swapper
--test-enable -i chained_swapper
2021-07-04 02:14:22 +00:00
--stop-after-init
--log-level error
2021-07-25 02:12:32 +00:00
--log-handler flectra.addons.chained_swapper: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"
2021-07-04 02:14:22 +00:00