2021-03-23 19:38:33 +00:00
|
|
|
image: ubuntu:xenial
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- testall
|
|
|
|
- testsingle
|
|
|
|
|
|
|
|
variables:
|
|
|
|
POSTGRES_DB: postgres
|
|
|
|
POSTGRES_USER: flectra
|
|
|
|
POSTGRES_PASSWORD: flectra
|
|
|
|
POSTGRES_HOST: postgres
|
|
|
|
POSTGRES_PORT: "5432"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: postgres:10-alpine
|
|
|
|
alias: psql
|
|
|
|
|
|
|
|
|
|
|
|
test_all_modules:
|
|
|
|
stage: testall
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:1-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt-get install -y expect-dev python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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-05-27 12:22:47 +00:00
|
|
|
--init base_technical_features,easy_switch_user,mass_editing,base_optional_quick_create,filter_multi_user,barcode_action,base_tier_validation,document_quick_access,document_quick_access_folder_auto_classification,base_export_manager,sequence_check_digit,base_tier_validation_formula,sequence_reset_period,date_range,default_multi_user,base_import_security_group
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
|
|
|
--log-handler flectra.addons.base_technical_features:TEST
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.easy_switch_user:TEST
|
2021-03-23 19:38:33 +00:00
|
|
|
--log-handler flectra.addons.mass_editing:TEST
|
2021-05-27 12:22:47 +00:00
|
|
|
--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:TEST
|
|
|
|
--log-handler flectra.addons.document_quick_access:TEST
|
|
|
|
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST
|
2021-03-23 19:38:33 +00:00
|
|
|
--log-handler flectra.addons.base_export_manager:TEST
|
|
|
|
--log-handler flectra.addons.sequence_check_digit:TEST
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_tier_validation_formula:TEST
|
|
|
|
--log-handler flectra.addons.sequence_reset_period:TEST
|
|
|
|
--log-handler flectra.addons.date_range:TEST
|
2021-03-23 19:38:33 +00:00
|
|
|
--log-handler flectra.addons.default_multi_user:TEST
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_import_security_group:TEST
|
2021-03-23 19:38:33 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_technical_features:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_base_technical_features
|
|
|
|
--test-enable -i base_technical_features
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_technical_features:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_easy_switch_user:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_easy_switch_user
|
|
|
|
- psql -h psql -U flectra -d test_easy_switch_user -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_easy_switch_user
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_easy_switch_user
|
2021-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_easy_switch_user
|
|
|
|
--test-enable -i easy_switch_user
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.easy_switch_user:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_mass_editing:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_mass_editing
|
|
|
|
--test-enable -i mass_editing
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.mass_editing:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_optional_quick_create:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +00:00
|
|
|
- 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
|
2021-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +00:00
|
|
|
- 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
|
2021-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_base_optional_quick_create
|
|
|
|
--test-enable -i base_optional_quick_create
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_optional_quick_create:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_filter_multi_user:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_filter_multi_user
|
|
|
|
--test-enable -i filter_multi_user
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.filter_multi_user:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_barcode_action:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_barcode_action
|
|
|
|
--test-enable -i barcode_action
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.barcode_action:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_tier_validation:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_base_tier_validation
|
|
|
|
--test-enable -i base_tier_validation
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_tier_validation:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_document_quick_access:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_document_quick_access
|
|
|
|
--test-enable -i document_quick_access
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.document_quick_access:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_document_quick_access_folder_auto_classification:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_document_quick_access_folder_auto_classification
|
|
|
|
- psql -h psql -U flectra -d test_document_quick_access_folder_auto_classification -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_document_quick_access_folder_auto_classification
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_document_quick_access_folder_auto_classification
|
2021-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_document_quick_access_folder_auto_classification
|
|
|
|
--test-enable -i document_quick_access_folder_auto_classification
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_export_manager:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_base_export_manager
|
|
|
|
--test-enable -i base_export_manager
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_export_manager:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_sequence_check_digit:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_sequence_check_digit
|
|
|
|
--test-enable -i sequence_check_digit
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.sequence_check_digit:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_tier_validation_formula:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_base_tier_validation_formula
|
|
|
|
--test-enable -i base_tier_validation_formula
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_tier_validation_formula:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_sequence_reset_period:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_sequence_reset_period
|
|
|
|
--test-enable -i sequence_reset_period
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.sequence_reset_period:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_date_range:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_date_range
|
|
|
|
--test-enable -i date_range
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.date_range:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_default_multi_user:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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:38:33 +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:22:47 +00:00
|
|
|
--database test_default_multi_user
|
|
|
|
--test-enable -i default_multi_user
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.default_multi_user:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|
2021-05-27 12:22:47 +00:00
|
|
|
test_module_base_import_security_group:
|
2021-03-23 19:38:33 +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 python-lxml libzbar-dev poppler-utils
|
|
|
|
- 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:22:47 +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-03-23 19:38:33 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:22:47 +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-03-23 19:38:33 +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:22:47 +00:00
|
|
|
--database test_base_import_security_group
|
|
|
|
--test-enable -i base_import_security_group
|
2021-03-23 19:38:33 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:22:47 +00:00
|
|
|
--log-handler flectra.addons.base_import_security_group:TEST"
|
2021-03-23 19:38:33 +00:00
|
|
|
|