Automatic Update form OCA2FC Migrator

This commit is contained in:
Flectra Community Bot 2021-05-27 12:22:47 +00:00 committed by OCA2FC Migrator Bot
parent f533b3953c
commit ad66a64119
5 changed files with 239 additions and 236 deletions

View File

@ -44,160 +44,28 @@ test_all_modules:
--db_password flectra --db_password flectra
--database test_all --database test_all
--test-enable --test-enable
--init filter_multi_user,base_import_security_group,sequence_reset_period,document_quick_access,base_technical_features,base_tier_validation_formula,mass_editing,date_range,base_export_manager,sequence_check_digit,easy_switch_user,document_quick_access_folder_auto_classification,base_tier_validation,default_multi_user,base_optional_quick_create,barcode_action --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
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.filter_multi_user:TEST
--log-handler flectra.addons.base_import_security_group:TEST
--log-handler flectra.addons.sequence_reset_period:TEST
--log-handler flectra.addons.document_quick_access:TEST
--log-handler flectra.addons.base_technical_features:TEST --log-handler flectra.addons.base_technical_features:TEST
--log-handler flectra.addons.base_tier_validation_formula:TEST --log-handler flectra.addons.easy_switch_user:TEST
--log-handler flectra.addons.mass_editing:TEST --log-handler flectra.addons.mass_editing:TEST
--log-handler flectra.addons.date_range: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:TEST
--log-handler flectra.addons.document_quick_access:TEST
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST
--log-handler flectra.addons.base_export_manager:TEST --log-handler flectra.addons.base_export_manager:TEST
--log-handler flectra.addons.sequence_check_digit:TEST --log-handler flectra.addons.sequence_check_digit:TEST
--log-handler flectra.addons.easy_switch_user:TEST --log-handler flectra.addons.base_tier_validation_formula:TEST
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST --log-handler flectra.addons.sequence_reset_period:TEST
--log-handler flectra.addons.base_tier_validation:TEST --log-handler flectra.addons.date_range:TEST
--log-handler flectra.addons.default_multi_user:TEST --log-handler flectra.addons.default_multi_user:TEST
--log-handler flectra.addons.base_optional_quick_create:TEST --log-handler flectra.addons.base_import_security_group:TEST
--log-handler flectra.addons.barcode_action: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 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_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_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 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_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"
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 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_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_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 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_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_technical_features: test_module_base_technical_features:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
@ -231,7 +99,7 @@ test_module_base_technical_features:
--log-level error --log-level error
--log-handler flectra.addons.base_technical_features:TEST" --log-handler flectra.addons.base_technical_features:TEST"
test_module_base_tier_validation_formula: test_module_easy_switch_user:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -247,22 +115,22 @@ test_module_base_tier_validation_formula:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation_formula - createdb -h psql -U flectra -O flectra -T template1 test_easy_switch_user
- psql -h psql -U flectra -d test_base_tier_validation_formula -f ${CI_PROJECT_DIR}/ci_data/dump.sql - psql -h psql -U flectra -d test_easy_switch_user -f ${CI_PROJECT_DIR}/ci_data/dump.sql
- su - flectra -c "mkdir -p ~/.local/share/filestore" - 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 - 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_base_tier_validation_formula - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_easy_switch_user
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_base_tier_validation_formula --database test_easy_switch_user
--test-enable -i base_tier_validation_formula --test-enable -i easy_switch_user
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.base_tier_validation_formula:TEST" --log-handler flectra.addons.easy_switch_user:TEST"
test_module_mass_editing: test_module_mass_editing:
stage: testsingle stage: testsingle
@ -297,7 +165,7 @@ test_module_mass_editing:
--log-level error --log-level error
--log-handler flectra.addons.mass_editing:TEST" --log-handler flectra.addons.mass_editing:TEST"
test_module_date_range: test_module_base_optional_quick_create:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -313,22 +181,187 @@ test_module_date_range:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_date_range - createdb -h psql -U flectra -O flectra -T template1 test_base_optional_quick_create
- psql -h psql -U flectra -d test_date_range -f ${CI_PROJECT_DIR}/ci_data/dump.sql - 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" - su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_date_range - 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_date_range - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_optional_quick_create
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_date_range --database test_base_optional_quick_create
--test-enable -i date_range --test-enable -i base_optional_quick_create
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.date_range:TEST" --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 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_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 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_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:
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"
- 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 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_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_document_quick_access_folder_auto_classification:
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"
- 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
- su - flectra -c "mkdir -p ~/.local/share/filestore"
- 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
- 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_folder_auto_classification
--test-enable -i document_quick_access_folder_auto_classification
--stop-after-init
--log-level error
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST"
test_module_base_export_manager: test_module_base_export_manager:
stage: testsingle stage: testsingle
@ -396,7 +429,7 @@ test_module_sequence_check_digit:
--log-level error --log-level error
--log-handler flectra.addons.sequence_check_digit:TEST" --log-handler flectra.addons.sequence_check_digit:TEST"
test_module_easy_switch_user: test_module_base_tier_validation_formula:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -412,24 +445,24 @@ test_module_easy_switch_user:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_easy_switch_user - createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation_formula
- psql -h psql -U flectra -d test_easy_switch_user -f ${CI_PROJECT_DIR}/ci_data/dump.sql - 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" - su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_easy_switch_user - 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_easy_switch_user - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation_formula
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_easy_switch_user --database test_base_tier_validation_formula
--test-enable -i easy_switch_user --test-enable -i base_tier_validation_formula
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.easy_switch_user:TEST" --log-handler flectra.addons.base_tier_validation_formula:TEST"
test_module_document_quick_access_folder_auto_classification: test_module_sequence_reset_period:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -445,24 +478,24 @@ test_module_document_quick_access_folder_auto_classification:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_document_quick_access_folder_auto_classification - createdb -h psql -U flectra -O flectra -T template1 test_sequence_reset_period
- psql -h psql -U flectra -d test_document_quick_access_folder_auto_classification -f ${CI_PROJECT_DIR}/ci_data/dump.sql - 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" - su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_document_quick_access_folder_auto_classification - 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_document_quick_access_folder_auto_classification - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_sequence_reset_period
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_document_quick_access_folder_auto_classification --database test_sequence_reset_period
--test-enable -i document_quick_access_folder_auto_classification --test-enable -i sequence_reset_period
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.document_quick_access_folder_auto_classification:TEST" --log-handler flectra.addons.sequence_reset_period:TEST"
test_module_base_tier_validation: test_module_date_range:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -478,22 +511,22 @@ test_module_base_tier_validation:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation - createdb -h psql -U flectra -O flectra -T template1 test_date_range
- psql -h psql -U flectra -d test_base_tier_validation -f ${CI_PROJECT_DIR}/ci_data/dump.sql - 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" - su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation - 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_base_tier_validation - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_date_range
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_base_tier_validation --database test_date_range
--test-enable -i base_tier_validation --test-enable -i date_range
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.base_tier_validation:TEST" --log-handler flectra.addons.date_range:TEST"
test_module_default_multi_user: test_module_default_multi_user:
stage: testsingle stage: testsingle
@ -528,7 +561,7 @@ test_module_default_multi_user:
--log-level error --log-level error
--log-handler flectra.addons.default_multi_user:TEST" --log-handler flectra.addons.default_multi_user:TEST"
test_module_base_optional_quick_create: test_module_base_import_security_group:
stage: testsingle stage: testsingle
when: on_failure when: on_failure
image: image:
@ -544,53 +577,20 @@ test_module_base_optional_quick_create:
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip - 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 - 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra" - export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_base_optional_quick_create - createdb -h psql -U flectra -O flectra -T template1 test_base_import_security_group
- psql -h psql -U flectra -d test_base_optional_quick_create -f ${CI_PROJECT_DIR}/ci_data/dump.sql - 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" - 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 - 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_optional_quick_create - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_import_security_group
- su - flectra -c "/opt/flectra/flectra-bin - su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR} --addons-path ${CI_PROJECT_DIR}
--db_host psql --db_host psql
--db_port 5432 --db_port 5432
--db_user flectra --db_user flectra
--db_password flectra --db_password flectra
--database test_base_optional_quick_create --database test_base_import_security_group
--test-enable -i base_optional_quick_create --test-enable -i base_import_security_group
--stop-after-init --stop-after-init
--log-level error --log-level error
--log-handler flectra.addons.base_optional_quick_create:TEST" --log-handler flectra.addons.base_import_security_group: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 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_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"

View File

@ -9,21 +9,21 @@ Available addons
addon | version | summary addon | version | summary
--- | --- | --- --- | --- | ---
[filter_multi_user](filter_multi_user/) | 1.0.1.0.0| Allows to share user-defined filters filters among several users.
[base_import_security_group](base_import_security_group/) | 1.0.1.0.0| Group-based permissions for importing CSV files
[sequence_reset_period](sequence_reset_period/) | 1.0.1.0.0| Auto-generate yearly/monthly/weekly/daily sequence period ranges
[document_quick_access](document_quick_access/) | 1.0.1.0.1| Document quick access
[base_technical_features](base_technical_features/) | 1.0.1.0.0| Access to technical features without activating debug mode [base_technical_features](base_technical_features/) | 1.0.1.0.0| Access to technical features without activating debug mode
[base_tier_validation_formula](base_tier_validation_formula/) | 1.0.1.0.0| Formulas for Base tier validation [easy_switch_user](easy_switch_user/) | 1.0.1.0.0| Lets administrators and developers quickly change user to test e.g. access rights
[mass_editing](mass_editing/) | 1.0.1.1.2| Mass Editing [mass_editing](mass_editing/) | 1.0.1.1.2| Mass Editing
[date_range](date_range/) | 1.0.2.0.1| Manage all kind of date range [base_optional_quick_create](base_optional_quick_create/) | 1.0.1.0.0| Avoid 'quick create' on m2o fields, on a 'by model' basis
[filter_multi_user](filter_multi_user/) | 1.0.1.0.0| Allows to share user-defined filters filters among several users.
[barcode_action](barcode_action/) | 1.0.1.0.0| Allows to use barcodes as a launcher
[base_tier_validation](base_tier_validation/) | 1.0.3.1.1| Implement a validation process based on tiers.
[document_quick_access](document_quick_access/) | 1.0.1.0.1| Document quick access
[document_quick_access_folder_auto_classification](document_quick_access_folder_auto_classification/) | 1.0.1.0.1| Auto classification of Documents after reading a QR
[base_export_manager](base_export_manager/) | 1.0.1.0.0| Manage model export profiles [base_export_manager](base_export_manager/) | 1.0.1.0.0| Manage model export profiles
[sequence_check_digit](sequence_check_digit/) | 1.0.1.0.0| Adds a check digit on sequences [sequence_check_digit](sequence_check_digit/) | 1.0.1.0.0| Adds a check digit on sequences
[easy_switch_user](easy_switch_user/) | 1.0.1.0.0| Lets administrators and developers quickly change user to test e.g. access rights [base_tier_validation_formula](base_tier_validation_formula/) | 1.0.1.0.0| Formulas for Base tier validation
[document_quick_access_folder_auto_classification](document_quick_access_folder_auto_classification/) | 1.0.1.0.1| Auto classification of Documents after reading a QR [sequence_reset_period](sequence_reset_period/) | 1.0.1.0.0| Auto-generate yearly/monthly/weekly/daily sequence period ranges
[base_tier_validation](base_tier_validation/) | 1.0.3.1.1| Implement a validation process based on tiers. [date_range](date_range/) | 1.0.2.0.1| Manage all kind of date range
[default_multi_user](default_multi_user/) | 1.0.1.0.0| Allows to share user-defined defaults among several users. [default_multi_user](default_multi_user/) | 1.0.1.0.0| Allows to share user-defined defaults among several users.
[base_optional_quick_create](base_optional_quick_create/) | 1.0.1.0.0| Avoid 'quick create' on m2o fields, on a 'by model' basis [base_import_security_group](base_import_security_group/) | 1.0.1.0.0| Group-based permissions for importing CSV files
[barcode_action](barcode_action/) | 1.0.1.0.0| Allows to use barcodes as a launcher

View File

@ -1,6 +1,7 @@
Most of the files are Most of the files are
:Copyright: This stylesheet has been placed in the public domain. :Copyright: This stylesheet has been placed in the public domain.
<!-- Copyright 2019 Creu Blanca
Copyright 2019 Creu Blanca Copyright 2019 Creu Blanca
Copyright 2018 Flectra Community Copyright 2018 Flectra Community

View File

@ -1,5 +1,6 @@
Most of the files are Most of the files are
Copyright (C) 2017 Creu Blanca
Copyright 2017 Creu Blanca <https://creublanca.es/> Copyright 2017 Creu Blanca <https://creublanca.es/>
Copyright 2018 Flectra Community Copyright 2018 Flectra Community

View File

@ -1,5 +1,6 @@
Most of the files are Most of the files are
Copyright (C) 2017 Creu Blanca
Copyright 2017 Creu Blanca <https://creublanca.es/> Copyright 2017 Creu Blanca <https://creublanca.es/>
Copyright 2018 Flectra Community Copyright 2018 Flectra Community