2021-03-23 19:13:18 +00:00
|
|
|
image: ubuntu:focal
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- testall
|
|
|
|
- testsingle
|
|
|
|
|
|
|
|
variables:
|
|
|
|
POSTGRES_DB: postgres
|
|
|
|
POSTGRES_USER: flectra
|
|
|
|
POSTGRES_PASSWORD: flectra
|
|
|
|
POSTGRES_HOST: postgres
|
|
|
|
POSTGRES_PORT: "5432"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: postgres:12-alpine
|
|
|
|
alias: psql
|
|
|
|
|
|
|
|
|
|
|
|
test_all_modules:
|
|
|
|
stage: testall
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt-get install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- 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},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
|
|
|
--database test_all
|
|
|
|
--test-enable
|
2021-05-27 12:13:17 +00:00
|
|
|
--init partner_address_version,partner_firstname,partner_contact_job_position,partner_fax,partner_employee_quantity,base_location_nuts,partner_contact_age_range,partner_second_lastname,partner_contact_department,partner_contact_nationality,partner_phone_secondary,partner_affiliate,partner_tier_validation,partner_phone_extension,partner_priority,partner_ref_unique,partner_industry_secondary,partner_helper,base_partner_sequence,partner_multi_relation,partner_iterative_archive,partner_company_type,portal_partner_select_all,base_location_geonames_import,partner_contact_birthdate,partner_identification,partner_vat_unique,partner_contact_access_link,partner_contact_personal_information_page,partner_contact_gender,partner_contact_lang,base_location,partner_contact_in_several_companies,partner_company_group,base_country_state_translatable
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_address_version:TEST
|
|
|
|
--log-handler flectra.addons.partner_firstname:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_job_position:TEST
|
|
|
|
--log-handler flectra.addons.partner_fax:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.partner_employee_quantity:TEST
|
2021-04-28 15:43:20 +00:00
|
|
|
--log-handler flectra.addons.base_location_nuts:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_age_range:TEST
|
|
|
|
--log-handler flectra.addons.partner_second_lastname:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_department:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_nationality:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.partner_phone_secondary:TEST
|
|
|
|
--log-handler flectra.addons.partner_affiliate:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_tier_validation:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.partner_phone_extension:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_priority:TEST
|
|
|
|
--log-handler flectra.addons.partner_ref_unique:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.partner_industry_secondary:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_helper:TEST
|
|
|
|
--log-handler flectra.addons.base_partner_sequence:TEST
|
|
|
|
--log-handler flectra.addons.partner_multi_relation:TEST
|
|
|
|
--log-handler flectra.addons.partner_iterative_archive:TEST
|
|
|
|
--log-handler flectra.addons.partner_company_type:TEST
|
|
|
|
--log-handler flectra.addons.portal_partner_select_all:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
--log-handler flectra.addons.base_location_geonames_import:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_birthdate:TEST
|
2021-04-28 15:43:20 +00:00
|
|
|
--log-handler flectra.addons.partner_identification:TEST
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_vat_unique:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_access_link:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_personal_information_page:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_gender:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_lang:TEST
|
|
|
|
--log-handler flectra.addons.base_location:TEST
|
|
|
|
--log-handler flectra.addons.partner_contact_in_several_companies:TEST
|
|
|
|
--log-handler flectra.addons.partner_company_group:TEST
|
|
|
|
--log-handler flectra.addons.base_country_state_translatable:TEST
|
2021-03-23 19:13:18 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_address_version:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_address_version
|
|
|
|
- psql -h psql -U flectra -d test_partner_address_version -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_address_version
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_address_version
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_address_version
|
|
|
|
--test-enable -i partner_address_version
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_address_version:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_firstname:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_firstname
|
|
|
|
--test-enable -i partner_firstname
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_firstname:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_job_position:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_job_position
|
|
|
|
--test-enable -i partner_contact_job_position
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_job_position:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_fax:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_fax
|
|
|
|
--test-enable -i partner_fax
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_fax:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_employee_quantity:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_employee_quantity
|
|
|
|
- psql -h psql -U flectra -d test_partner_employee_quantity -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_employee_quantity
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_employee_quantity
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_employee_quantity
|
|
|
|
--test-enable -i partner_employee_quantity
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_employee_quantity:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_base_location_nuts:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_base_location_nuts
|
|
|
|
--test-enable -i base_location_nuts
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.base_location_nuts:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_age_range:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_contact_age_range
|
|
|
|
- psql -h psql -U flectra -d test_partner_contact_age_range -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_contact_age_range
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_age_range
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_age_range
|
|
|
|
--test-enable -i partner_contact_age_range
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_age_range:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_second_lastname:
|
2021-04-28 15:43:20 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_second_lastname
|
|
|
|
--test-enable -i partner_second_lastname
|
2021-04-28 15:43:20 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_second_lastname:TEST"
|
2021-04-28 15:43:20 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_department:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_department
|
|
|
|
--test-enable -i partner_contact_department
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_department:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_nationality:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_nationality
|
|
|
|
--test-enable -i partner_contact_nationality
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_nationality:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_phone_secondary:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_phone_secondary
|
|
|
|
- psql -h psql -U flectra -d test_partner_phone_secondary -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_phone_secondary
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_phone_secondary
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_phone_secondary
|
|
|
|
--test-enable -i partner_phone_secondary
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_phone_secondary:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_affiliate:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_affiliate
|
|
|
|
--test-enable -i partner_affiliate
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_affiliate:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_tier_validation:
|
2021-04-28 15:43:20 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_tier_validation
|
|
|
|
- psql -h psql -U flectra -d test_partner_tier_validation -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_tier_validation
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_tier_validation
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_tier_validation
|
|
|
|
--test-enable -i partner_tier_validation
|
2021-04-28 15:43:20 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_tier_validation:TEST"
|
2021-04-28 15:43:20 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_phone_extension:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_phone_extension
|
|
|
|
- psql -h psql -U flectra -d test_partner_phone_extension -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_phone_extension
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_phone_extension
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_phone_extension
|
|
|
|
--test-enable -i partner_phone_extension
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_phone_extension:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_priority:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_priority
|
|
|
|
- psql -h psql -U flectra -d test_partner_priority -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_priority
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_priority
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_priority
|
|
|
|
--test-enable -i partner_priority
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_priority:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_ref_unique:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_ref_unique
|
|
|
|
--test-enable -i partner_ref_unique
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_ref_unique:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_industry_secondary:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_industry_secondary
|
|
|
|
--test-enable -i partner_industry_secondary
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_industry_secondary:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_helper:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_helper
|
|
|
|
- psql -h psql -U flectra -d test_partner_helper -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_helper
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_helper
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_helper
|
|
|
|
--test-enable -i partner_helper
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_helper:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_base_partner_sequence:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_base_partner_sequence
|
|
|
|
--test-enable -i base_partner_sequence
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.base_partner_sequence:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_multi_relation:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_multi_relation
|
|
|
|
--test-enable -i partner_multi_relation
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_multi_relation:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_iterative_archive:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_iterative_archive
|
|
|
|
- psql -h psql -U flectra -d test_partner_iterative_archive -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_iterative_archive
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_iterative_archive
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_iterative_archive
|
|
|
|
--test-enable -i partner_iterative_archive
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_iterative_archive:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_company_type:
|
2021-04-28 15:43:20 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_company_type
|
|
|
|
--test-enable -i partner_company_type
|
2021-04-28 15:43:20 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_company_type:TEST"
|
2021-04-28 15:43:20 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_portal_partner_select_all:
|
2021-05-26 11:31:53 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_portal_partner_select_all
|
|
|
|
- psql -h psql -U flectra -d test_portal_partner_select_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-05-26 11:31:53 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_portal_partner_select_all
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_portal_partner_select_all
|
2021-05-26 11:31:53 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_portal_partner_select_all
|
|
|
|
--test-enable -i portal_partner_select_all
|
2021-05-26 11:31:53 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.portal_partner_select_all:TEST"
|
2021-05-26 11:31:53 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_base_location_geonames_import:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_base_location_geonames_import
|
|
|
|
--test-enable -i base_location_geonames_import
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.base_location_geonames_import:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_birthdate:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_birthdate
|
|
|
|
--test-enable -i partner_contact_birthdate
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_birthdate:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_identification:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_identification
|
|
|
|
--test-enable -i partner_identification
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_identification:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_vat_unique:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_vat_unique
|
|
|
|
--test-enable -i partner_vat_unique
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_vat_unique:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_access_link:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_access_link
|
|
|
|
--test-enable -i partner_contact_access_link
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_access_link:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_personal_information_page:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_personal_information_page
|
|
|
|
--test-enable -i partner_contact_personal_information_page
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_personal_information_page:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_gender:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_gender
|
|
|
|
--test-enable -i partner_contact_gender
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_gender:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_lang:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_contact_lang
|
|
|
|
- psql -h psql -U flectra -d test_partner_contact_lang -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_contact_lang
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_lang
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_lang
|
|
|
|
--test-enable -i partner_contact_lang
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_lang:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_base_location:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_base_location
|
|
|
|
--test-enable -i base_location
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.base_location:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_contact_in_several_companies:
|
2021-03-23 19:13:18 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- createdb -h psql -U flectra -O flectra -T template1 test_partner_contact_in_several_companies
|
|
|
|
- psql -h psql -U flectra -d test_partner_contact_in_several_companies -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_partner_contact_in_several_companies
|
|
|
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_partner_contact_in_several_companies
|
2021-03-23 19:13:18 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_contact_in_several_companies
|
|
|
|
--test-enable -i partner_contact_in_several_companies
|
2021-03-23 19:13:18 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_contact_in_several_companies:TEST"
|
2021-03-23 19:13:18 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_partner_company_group:
|
2021-04-28 15:43:20 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-04-28 15:43:20 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_partner_company_group
|
|
|
|
--test-enable -i partner_company_group
|
2021-04-28 15:43:20 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.partner_company_group:TEST"
|
2021-04-28 15:43:20 +00:00
|
|
|
|
2021-05-27 12:13:17 +00:00
|
|
|
test_module_base_country_state_translatable:
|
2021-05-26 11:31:53 +00:00
|
|
|
stage: testsingle
|
|
|
|
when: on_failure
|
|
|
|
image:
|
|
|
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
|
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
|
|
script:
|
|
|
|
- apt-get install -y p7zip-full
|
|
|
|
- apt install -y expect-dev
|
|
|
|
- su - flectra -c "mkdir ~/others"
|
|
|
|
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-ux.git ~/others/server-ux"
|
|
|
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
|
|
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
|
|
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
|
|
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
|
|
|
- export PGPASSWORD="flectra"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-05-26 11:31:53 +00:00
|
|
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
2021-05-27 12:13:17 +00:00
|
|
|
- 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
|
2021-05-26 11:31:53 +00:00
|
|
|
- su - flectra -c "/opt/flectra/flectra-bin
|
|
|
|
--addons-path ${CI_PROJECT_DIR},~/others/server-ux
|
|
|
|
--db_host psql
|
|
|
|
--db_port 5432
|
|
|
|
--db_user flectra
|
|
|
|
--db_password flectra
|
2021-05-27 12:13:17 +00:00
|
|
|
--database test_base_country_state_translatable
|
|
|
|
--test-enable -i base_country_state_translatable
|
2021-05-26 11:31:53 +00:00
|
|
|
--stop-after-init
|
|
|
|
--log-level error
|
2021-05-27 12:13:17 +00:00
|
|
|
--log-handler flectra.addons.base_country_state_translatable:TEST"
|
2021-05-26 11:31:53 +00:00
|
|
|
|