partner-contact/.gitlab-ci.yml
2024-10-01 07:51:46 +02:00

1504 lines
76 KiB
YAML

image: ubuntu:jammy
stages:
- testall
- testsingle
variables:
POSTGRES_DB: postgres
POSTGRES_USER: flectra
POSTGRES_PASSWORD: flectra
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
services:
- name: postgres:14-bullseye
alias: psql
test_all_modules:
stage: testall
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_all
- psql -h psql -U flectra -d test_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql
- su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_all
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_all
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
--database test_all
--test-enable
--init partner_pricelist_search,partner_ref_unique,sale_partner_company_group,partner_multi_relation,partner_affiliate,partner_deduplicate_by_website,partner_contact_gender,crm_partner_company_group,base_country_state_translatable,partner_second_lastname,partner_identification_gln,partner_contact_job_position,base_partner_company_group,partner_deduplicate_acl,partner_stage,base_location,partner_email_check,partner_contact_personal_information_page,partner_firstname,partner_tz,base_partner_sequence,partner_contact_access_link,partner_industry_secondary,partner_stage_only_confirmed,partner_deduplicate_filter,partner_fax,partner_address_street3,base_location_geonames_import,partner_company_group,account_partner_company_group,partner_identification,partner_contact_birthdate,partner_email_duplicate_warn,partner_contact_department,partner_contact_nationality,partner_contact_role,partner_contact_birthplace,partner_vat_unique,partner_company_type,partner_address_split,base_location_nuts,partner_manual_rank,partner_display_name_line_break,partner_external_map
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_pricelist_search:TEST
--log-handler flectra.addons.partner_ref_unique:TEST
--log-handler flectra.addons.sale_partner_company_group:TEST
--log-handler flectra.addons.partner_multi_relation:TEST
--log-handler flectra.addons.partner_affiliate:TEST
--log-handler flectra.addons.partner_deduplicate_by_website:TEST
--log-handler flectra.addons.partner_contact_gender:TEST
--log-handler flectra.addons.crm_partner_company_group:TEST
--log-handler flectra.addons.base_country_state_translatable:TEST
--log-handler flectra.addons.partner_second_lastname:TEST
--log-handler flectra.addons.partner_identification_gln:TEST
--log-handler flectra.addons.partner_contact_job_position:TEST
--log-handler flectra.addons.base_partner_company_group:TEST
--log-handler flectra.addons.partner_deduplicate_acl:TEST
--log-handler flectra.addons.partner_stage:TEST
--log-handler flectra.addons.base_location:TEST
--log-handler flectra.addons.partner_email_check:TEST
--log-handler flectra.addons.partner_contact_personal_information_page:TEST
--log-handler flectra.addons.partner_firstname:TEST
--log-handler flectra.addons.partner_tz:TEST
--log-handler flectra.addons.base_partner_sequence:TEST
--log-handler flectra.addons.partner_contact_access_link:TEST
--log-handler flectra.addons.partner_industry_secondary:TEST
--log-handler flectra.addons.partner_stage_only_confirmed:TEST
--log-handler flectra.addons.partner_deduplicate_filter:TEST
--log-handler flectra.addons.partner_fax:TEST
--log-handler flectra.addons.partner_address_street3:TEST
--log-handler flectra.addons.base_location_geonames_import:TEST
--log-handler flectra.addons.partner_company_group:TEST
--log-handler flectra.addons.account_partner_company_group:TEST
--log-handler flectra.addons.partner_identification:TEST
--log-handler flectra.addons.partner_contact_birthdate:TEST
--log-handler flectra.addons.partner_email_duplicate_warn:TEST
--log-handler flectra.addons.partner_contact_department:TEST
--log-handler flectra.addons.partner_contact_nationality:TEST
--log-handler flectra.addons.partner_contact_role:TEST
--log-handler flectra.addons.partner_contact_birthplace:TEST
--log-handler flectra.addons.partner_vat_unique:TEST
--log-handler flectra.addons.partner_company_type:TEST
--log-handler flectra.addons.partner_address_split:TEST
--log-handler flectra.addons.base_location_nuts:TEST
--log-handler flectra.addons.partner_manual_rank:TEST
--log-handler flectra.addons.partner_display_name_line_break:TEST
--log-handler flectra.addons.partner_external_map:TEST
"
test_module_partner_pricelist_search:
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
- 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_partner_pricelist_search
- psql -h psql -U flectra -d test_partner_pricelist_search -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_partner_pricelist_search
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_pricelist_search
- 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_partner_pricelist_search
--test-enable -i partner_pricelist_search
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_pricelist_search:TEST"
test_module_partner_ref_unique:
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
- 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_partner_ref_unique
- psql -h psql -U flectra -d test_partner_ref_unique -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_partner_ref_unique
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_ref_unique
- 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_partner_ref_unique
--test-enable -i partner_ref_unique
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_ref_unique:TEST"
test_module_sale_partner_company_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
- 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_sale_partner_company_group
- psql -h psql -U flectra -d test_sale_partner_company_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_sale_partner_company_group
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_sale_partner_company_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_sale_partner_company_group
--test-enable -i sale_partner_company_group
--stop-after-init
--log-level error
--log-handler flectra.addons.sale_partner_company_group:TEST"
test_module_partner_multi_relation:
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
- 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_partner_multi_relation
- psql -h psql -U flectra -d test_partner_multi_relation -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_partner_multi_relation
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_multi_relation
- 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_partner_multi_relation
--test-enable -i partner_multi_relation
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_multi_relation:TEST"
test_module_partner_affiliate:
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
- 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_partner_affiliate
- psql -h psql -U flectra -d test_partner_affiliate -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_partner_affiliate
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_affiliate
- 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_partner_affiliate
--test-enable -i partner_affiliate
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_affiliate:TEST"
test_module_partner_deduplicate_by_website:
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
- 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_partner_deduplicate_by_website
- psql -h psql -U flectra -d test_partner_deduplicate_by_website -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_partner_deduplicate_by_website
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_deduplicate_by_website
- 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_partner_deduplicate_by_website
--test-enable -i partner_deduplicate_by_website
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_deduplicate_by_website:TEST"
test_module_partner_contact_gender:
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
- 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_partner_contact_gender
- psql -h psql -U flectra -d test_partner_contact_gender -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_partner_contact_gender
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_gender
- 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_partner_contact_gender
--test-enable -i partner_contact_gender
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_gender:TEST"
test_module_crm_partner_company_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
- 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_crm_partner_company_group
- psql -h psql -U flectra -d test_crm_partner_company_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_crm_partner_company_group
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_crm_partner_company_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_crm_partner_company_group
--test-enable -i crm_partner_company_group
--stop-after-init
--log-level error
--log-handler flectra.addons.crm_partner_company_group:TEST"
test_module_base_country_state_translatable:
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
- 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_country_state_translatable
- psql -h psql -U flectra -d test_base_country_state_translatable -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_country_state_translatable
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_country_state_translatable
- 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_country_state_translatable
--test-enable -i base_country_state_translatable
--stop-after-init
--log-level error
--log-handler flectra.addons.base_country_state_translatable:TEST"
test_module_partner_second_lastname:
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
- 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_partner_second_lastname
- psql -h psql -U flectra -d test_partner_second_lastname -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_partner_second_lastname
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_second_lastname
- 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_partner_second_lastname
--test-enable -i partner_second_lastname
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_second_lastname:TEST"
test_module_partner_identification_gln:
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
- 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_partner_identification_gln
- psql -h psql -U flectra -d test_partner_identification_gln -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_partner_identification_gln
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_identification_gln
- 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_partner_identification_gln
--test-enable -i partner_identification_gln
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_identification_gln:TEST"
test_module_partner_contact_job_position:
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
- 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_partner_contact_job_position
- psql -h psql -U flectra -d test_partner_contact_job_position -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_partner_contact_job_position
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_job_position
- 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_partner_contact_job_position
--test-enable -i partner_contact_job_position
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_job_position:TEST"
test_module_base_partner_company_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
- 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_partner_company_group
- psql -h psql -U flectra -d test_base_partner_company_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_partner_company_group
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_partner_company_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_partner_company_group
--test-enable -i base_partner_company_group
--stop-after-init
--log-level error
--log-handler flectra.addons.base_partner_company_group:TEST"
test_module_partner_deduplicate_acl:
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
- 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_partner_deduplicate_acl
- psql -h psql -U flectra -d test_partner_deduplicate_acl -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_partner_deduplicate_acl
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_deduplicate_acl
- 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_partner_deduplicate_acl
--test-enable -i partner_deduplicate_acl
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_deduplicate_acl:TEST"
test_module_partner_stage:
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
- 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_partner_stage
- psql -h psql -U flectra -d test_partner_stage -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_partner_stage
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_stage
- 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_partner_stage
--test-enable -i partner_stage
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_stage:TEST"
test_module_base_location:
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
- 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_location
- psql -h psql -U flectra -d test_base_location -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_location
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_location
- 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_location
--test-enable -i base_location
--stop-after-init
--log-level error
--log-handler flectra.addons.base_location:TEST"
test_module_partner_email_check:
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
- 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_partner_email_check
- psql -h psql -U flectra -d test_partner_email_check -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_partner_email_check
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_email_check
- 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_partner_email_check
--test-enable -i partner_email_check
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_email_check:TEST"
test_module_partner_contact_personal_information_page:
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
- 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_partner_contact_personal_information_page
- psql -h psql -U flectra -d test_partner_contact_personal_information_page -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_partner_contact_personal_information_page
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_personal_information_page
- 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_partner_contact_personal_information_page
--test-enable -i partner_contact_personal_information_page
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_personal_information_page:TEST"
test_module_partner_firstname:
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
- 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_partner_firstname
- psql -h psql -U flectra -d test_partner_firstname -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_partner_firstname
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_firstname
- 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_partner_firstname
--test-enable -i partner_firstname
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_firstname:TEST"
test_module_partner_tz:
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
- 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_partner_tz
- psql -h psql -U flectra -d test_partner_tz -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_partner_tz
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_tz
- 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_partner_tz
--test-enable -i partner_tz
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_tz:TEST"
test_module_base_partner_sequence:
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
- 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_partner_sequence
- psql -h psql -U flectra -d test_base_partner_sequence -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_partner_sequence
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_partner_sequence
- 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_partner_sequence
--test-enable -i base_partner_sequence
--stop-after-init
--log-level error
--log-handler flectra.addons.base_partner_sequence:TEST"
test_module_partner_contact_access_link:
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
- 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_partner_contact_access_link
- psql -h psql -U flectra -d test_partner_contact_access_link -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_partner_contact_access_link
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_access_link
- 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_partner_contact_access_link
--test-enable -i partner_contact_access_link
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_access_link:TEST"
test_module_partner_industry_secondary:
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
- 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_partner_industry_secondary
- psql -h psql -U flectra -d test_partner_industry_secondary -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_partner_industry_secondary
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_industry_secondary
- 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_partner_industry_secondary
--test-enable -i partner_industry_secondary
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_industry_secondary:TEST"
test_module_partner_stage_only_confirmed:
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
- 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_partner_stage_only_confirmed
- psql -h psql -U flectra -d test_partner_stage_only_confirmed -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_partner_stage_only_confirmed
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_stage_only_confirmed
- 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_partner_stage_only_confirmed
--test-enable -i partner_stage_only_confirmed
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_stage_only_confirmed:TEST"
test_module_partner_deduplicate_filter:
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- 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_partner_deduplicate_filter
- psql -h psql -U flectra -d test_partner_deduplicate_filter -f ${CI_PROJECT_DIR}/ci_data/dump.sql
- su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_deduplicate_filter
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_deduplicate_filter
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
--database test_partner_deduplicate_filter
--test-enable -i partner_deduplicate_filter
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_deduplicate_filter:TEST"
test_module_partner_fax:
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
- 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_partner_fax
- psql -h psql -U flectra -d test_partner_fax -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_partner_fax
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_fax
- 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_partner_fax
--test-enable -i partner_fax
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_fax:TEST"
test_module_partner_address_street3:
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
- 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_partner_address_street3
- psql -h psql -U flectra -d test_partner_address_street3 -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_partner_address_street3
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_address_street3
- 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_partner_address_street3
--test-enable -i partner_address_street3
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_address_street3:TEST"
test_module_base_location_geonames_import:
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
- 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_location_geonames_import
- psql -h psql -U flectra -d test_base_location_geonames_import -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_location_geonames_import
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_location_geonames_import
- 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_location_geonames_import
--test-enable -i base_location_geonames_import
--stop-after-init
--log-level error
--log-handler flectra.addons.base_location_geonames_import:TEST"
test_module_partner_company_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
- 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_partner_company_group
- psql -h psql -U flectra -d test_partner_company_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_partner_company_group
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_company_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_partner_company_group
--test-enable -i partner_company_group
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_company_group:TEST"
test_module_account_partner_company_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
- 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_account_partner_company_group
- psql -h psql -U flectra -d test_account_partner_company_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_account_partner_company_group
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_account_partner_company_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_account_partner_company_group
--test-enable -i account_partner_company_group
--stop-after-init
--log-level error
--log-handler flectra.addons.account_partner_company_group:TEST"
test_module_partner_identification:
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
- 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_partner_identification
- psql -h psql -U flectra -d test_partner_identification -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_partner_identification
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_identification
- 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_partner_identification
--test-enable -i partner_identification
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_identification:TEST"
test_module_partner_contact_birthdate:
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
- 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_partner_contact_birthdate
- psql -h psql -U flectra -d test_partner_contact_birthdate -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_partner_contact_birthdate
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_birthdate
- 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_partner_contact_birthdate
--test-enable -i partner_contact_birthdate
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_birthdate:TEST"
test_module_partner_email_duplicate_warn:
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
- 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_partner_email_duplicate_warn
- psql -h psql -U flectra -d test_partner_email_duplicate_warn -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_partner_email_duplicate_warn
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_email_duplicate_warn
- 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_partner_email_duplicate_warn
--test-enable -i partner_email_duplicate_warn
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_email_duplicate_warn:TEST"
test_module_partner_contact_department:
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
- 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_partner_contact_department
- psql -h psql -U flectra -d test_partner_contact_department -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_partner_contact_department
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_department
- 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_partner_contact_department
--test-enable -i partner_contact_department
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_department:TEST"
test_module_partner_contact_nationality:
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
- 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_partner_contact_nationality
- psql -h psql -U flectra -d test_partner_contact_nationality -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_partner_contact_nationality
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_nationality
- 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_partner_contact_nationality
--test-enable -i partner_contact_nationality
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_nationality:TEST"
test_module_partner_contact_role:
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
- 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_partner_contact_role
- psql -h psql -U flectra -d test_partner_contact_role -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_partner_contact_role
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_role
- 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_partner_contact_role
--test-enable -i partner_contact_role
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_role:TEST"
test_module_partner_contact_birthplace:
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
- 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_partner_contact_birthplace
- psql -h psql -U flectra -d test_partner_contact_birthplace -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_partner_contact_birthplace
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_birthplace
- 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_partner_contact_birthplace
--test-enable -i partner_contact_birthplace
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_contact_birthplace:TEST"
test_module_partner_vat_unique:
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
- 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_partner_vat_unique
- psql -h psql -U flectra -d test_partner_vat_unique -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_partner_vat_unique
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_vat_unique
- 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_partner_vat_unique
--test-enable -i partner_vat_unique
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_vat_unique:TEST"
test_module_partner_company_type:
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
- 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_partner_company_type
- psql -h psql -U flectra -d test_partner_company_type -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_partner_company_type
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_company_type
- 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_partner_company_type
--test-enable -i partner_company_type
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_company_type:TEST"
test_module_partner_address_split:
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
- 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_partner_address_split
- psql -h psql -U flectra -d test_partner_address_split -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_partner_address_split
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_address_split
- 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_partner_address_split
--test-enable -i partner_address_split
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_address_split:TEST"
test_module_base_location_nuts:
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
- 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_location_nuts
- psql -h psql -U flectra -d test_base_location_nuts -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_location_nuts
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_location_nuts
- 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_location_nuts
--test-enable -i base_location_nuts
--stop-after-init
--log-level error
--log-handler flectra.addons.base_location_nuts:TEST"
test_module_partner_manual_rank:
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
- 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_partner_manual_rank
- psql -h psql -U flectra -d test_partner_manual_rank -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_partner_manual_rank
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_manual_rank
- 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_partner_manual_rank
--test-enable -i partner_manual_rank
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_manual_rank:TEST"
test_module_partner_display_name_line_break:
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
- 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_partner_display_name_line_break
- psql -h psql -U flectra -d test_partner_display_name_line_break -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_partner_display_name_line_break
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_display_name_line_break
- 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_partner_display_name_line_break
--test-enable -i partner_display_name_line_break
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_display_name_line_break:TEST"
test_module_partner_external_map:
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
- 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_partner_external_map
- psql -h psql -U flectra -d test_partner_external_map -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_partner_external_map
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_external_map
- 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_partner_external_map
--test-enable -i partner_external_map
--stop-after-init
--log-level error
--log-handler flectra.addons.partner_external_map:TEST"