From 7f0e142519e36d6e257e2946bcc55ab677373d26 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 25 Jul 2021 02:21:18 +0000 Subject: [PATCH 1/2] Automatic Update form OCA2FC Migrator --- .gitlab-ci.yml | 478 ++++++++++++++++++++++++------------------------- README.md | 20 +-- 2 files changed, 249 insertions(+), 249 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0e383f..55d0373 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,61 +45,27 @@ test_all_modules: --db_password flectra --database test_all --test-enable - --init report_xlsx_helper,report_xml,report_qweb_pdf_watermark,report_xlsx_helper_demo,report_csv,report_qweb_txt,bi_sql_editor_aggregate,report_context,report_fillpdf,report_xlsx,report_qweb_parameter,bi_sql_editor,report_wkhtmltopdf_param,report_qr,bi_view_editor + --init report_xml,report_context,report_xlsx_helper_demo,bi_sql_editor,report_csv,bi_sql_editor_aggregate,report_qr,report_wkhtmltopdf_param,report_qweb_pdf_watermark,report_xlsx_helper,report_xlsx,bi_view_editor,report_qweb_txt,report_fillpdf,report_qweb_parameter --stop-after-init --log-level error - --log-handler flectra.addons.report_xlsx_helper:TEST --log-handler flectra.addons.report_xml:TEST - --log-handler flectra.addons.report_qweb_pdf_watermark:TEST - --log-handler flectra.addons.report_xlsx_helper_demo:TEST - --log-handler flectra.addons.report_csv:TEST - --log-handler flectra.addons.report_qweb_txt:TEST - --log-handler flectra.addons.bi_sql_editor_aggregate:TEST --log-handler flectra.addons.report_context:TEST - --log-handler flectra.addons.report_fillpdf:TEST - --log-handler flectra.addons.report_xlsx:TEST - --log-handler flectra.addons.report_qweb_parameter:TEST + --log-handler flectra.addons.report_xlsx_helper_demo:TEST --log-handler flectra.addons.bi_sql_editor:TEST - --log-handler flectra.addons.report_wkhtmltopdf_param:TEST + --log-handler flectra.addons.report_csv:TEST + --log-handler flectra.addons.bi_sql_editor_aggregate:TEST --log-handler flectra.addons.report_qr:TEST + --log-handler flectra.addons.report_wkhtmltopdf_param:TEST + --log-handler flectra.addons.report_qweb_pdf_watermark:TEST + --log-handler flectra.addons.report_xlsx_helper:TEST + --log-handler flectra.addons.report_xlsx:TEST --log-handler flectra.addons.bi_view_editor:TEST + --log-handler flectra.addons.report_qweb_txt:TEST + --log-handler flectra.addons.report_fillpdf:TEST + --log-handler flectra.addons.report_qweb_parameter:TEST " -test_module_report_xlsx_helper: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_report_xlsx_helper - - psql -h psql -U flectra -d test_report_xlsx_helper -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_report_xlsx_helper - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx_helper - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_report_xlsx_helper - --test-enable -i report_xlsx_helper - --stop-after-init - --log-level error - --log-handler flectra.addons.report_xlsx_helper:TEST" - test_module_report_xml: stage: testsingle when: on_failure @@ -134,7 +100,7 @@ test_module_report_xml: --log-level error --log-handler flectra.addons.report_xml:TEST" -test_module_report_qweb_pdf_watermark: +test_module_report_context: stage: testsingle when: on_failure image: @@ -151,22 +117,22 @@ test_module_report_qweb_pdf_watermark: - 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_report_qweb_pdf_watermark - - psql -h psql -U flectra -d test_report_qweb_pdf_watermark -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - createdb -h psql -U flectra -O flectra -T template1 test_report_context + - psql -h psql -U flectra -d test_report_context -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_report_qweb_pdf_watermark - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_pdf_watermark + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_context + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_context - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR},~/others/server-tools --db_host psql --db_port 5432 --db_user flectra --db_password flectra - --database test_report_qweb_pdf_watermark - --test-enable -i report_qweb_pdf_watermark + --database test_report_context + --test-enable -i report_context --stop-after-init --log-level error - --log-handler flectra.addons.report_qweb_pdf_watermark:TEST" + --log-handler flectra.addons.report_context:TEST" test_module_report_xlsx_helper_demo: stage: testsingle @@ -202,6 +168,40 @@ test_module_report_xlsx_helper_demo: --log-level error --log-handler flectra.addons.report_xlsx_helper_demo:TEST" +test_module_bi_sql_editor: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_bi_sql_editor + - psql -h psql -U flectra -d test_bi_sql_editor -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_bi_sql_editor + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_bi_sql_editor + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_bi_sql_editor + --test-enable -i bi_sql_editor + --stop-after-init + --log-level error + --log-handler flectra.addons.bi_sql_editor:TEST" + test_module_report_csv: stage: testsingle when: on_failure @@ -236,40 +236,6 @@ test_module_report_csv: --log-level error --log-handler flectra.addons.report_csv:TEST" -test_module_report_qweb_txt: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_report_qweb_txt - - psql -h psql -U flectra -d test_report_qweb_txt -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_report_qweb_txt - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_txt - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_report_qweb_txt - --test-enable -i report_qweb_txt - --stop-after-init - --log-level error - --log-handler flectra.addons.report_qweb_txt:TEST" - test_module_bi_sql_editor_aggregate: stage: testsingle when: on_failure @@ -304,7 +270,7 @@ test_module_bi_sql_editor_aggregate: --log-level error --log-handler flectra.addons.bi_sql_editor_aggregate:TEST" -test_module_report_context: +test_module_report_qr: stage: testsingle when: on_failure image: @@ -321,158 +287,22 @@ test_module_report_context: - 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_report_context - - psql -h psql -U flectra -d test_report_context -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - createdb -h psql -U flectra -O flectra -T template1 test_report_qr + - psql -h psql -U flectra -d test_report_qr -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_report_context - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_context + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qr + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qr - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR},~/others/server-tools --db_host psql --db_port 5432 --db_user flectra --db_password flectra - --database test_report_context - --test-enable -i report_context + --database test_report_qr + --test-enable -i report_qr --stop-after-init --log-level error - --log-handler flectra.addons.report_context:TEST" - -test_module_report_fillpdf: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_report_fillpdf - - psql -h psql -U flectra -d test_report_fillpdf -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_report_fillpdf - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_fillpdf - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_report_fillpdf - --test-enable -i report_fillpdf - --stop-after-init - --log-level error - --log-handler flectra.addons.report_fillpdf:TEST" - -test_module_report_xlsx: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_report_xlsx - - psql -h psql -U flectra -d test_report_xlsx -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_report_xlsx - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_report_xlsx - --test-enable -i report_xlsx - --stop-after-init - --log-level error - --log-handler flectra.addons.report_xlsx:TEST" - -test_module_report_qweb_parameter: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_report_qweb_parameter - - psql -h psql -U flectra -d test_report_qweb_parameter -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_report_qweb_parameter - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_parameter - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_report_qweb_parameter - --test-enable -i report_qweb_parameter - --stop-after-init - --log-level error - --log-handler flectra.addons.report_qweb_parameter:TEST" - -test_module_bi_sql_editor: - stage: testsingle - when: on_failure - image: - name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest - entrypoint: ["/bin/sh", "-c"] - script: - - apt-get install -y p7zip-full - - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - - 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-tools.git ~/others/server-tools" - - 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_bi_sql_editor - - psql -h psql -U flectra -d test_bi_sql_editor -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_bi_sql_editor - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_bi_sql_editor - - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools - --db_host psql - --db_port 5432 - --db_user flectra - --db_password flectra - --database test_bi_sql_editor - --test-enable -i bi_sql_editor - --stop-after-init - --log-level error - --log-handler flectra.addons.bi_sql_editor:TEST" + --log-handler flectra.addons.report_qr:TEST" test_module_report_wkhtmltopdf_param: stage: testsingle @@ -508,7 +338,7 @@ test_module_report_wkhtmltopdf_param: --log-level error --log-handler flectra.addons.report_wkhtmltopdf_param:TEST" -test_module_report_qr: +test_module_report_qweb_pdf_watermark: stage: testsingle when: on_failure image: @@ -525,22 +355,90 @@ test_module_report_qr: - 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_report_qr - - psql -h psql -U flectra -d test_report_qr -f ${CI_PROJECT_DIR}/ci_data/dump.sql + - createdb -h psql -U flectra -O flectra -T template1 test_report_qweb_pdf_watermark + - psql -h psql -U flectra -d test_report_qweb_pdf_watermark -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_report_qr - - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qr + - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qweb_pdf_watermark + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_pdf_watermark - su - flectra -c "/opt/flectra/flectra-bin --addons-path ${CI_PROJECT_DIR},~/others/server-tools --db_host psql --db_port 5432 --db_user flectra --db_password flectra - --database test_report_qr - --test-enable -i report_qr + --database test_report_qweb_pdf_watermark + --test-enable -i report_qweb_pdf_watermark --stop-after-init --log-level error - --log-handler flectra.addons.report_qr:TEST" + --log-handler flectra.addons.report_qweb_pdf_watermark:TEST" + +test_module_report_xlsx_helper: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_report_xlsx_helper + - psql -h psql -U flectra -d test_report_xlsx_helper -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_report_xlsx_helper + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx_helper + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_report_xlsx_helper + --test-enable -i report_xlsx_helper + --stop-after-init + --log-level error + --log-handler flectra.addons.report_xlsx_helper:TEST" + +test_module_report_xlsx: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_report_xlsx + - psql -h psql -U flectra -d test_report_xlsx -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_report_xlsx + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_report_xlsx + --test-enable -i report_xlsx + --stop-after-init + --log-level error + --log-handler flectra.addons.report_xlsx:TEST" test_module_bi_view_editor: stage: testsingle @@ -576,3 +474,105 @@ test_module_bi_view_editor: --log-level error --log-handler flectra.addons.bi_view_editor:TEST" +test_module_report_qweb_txt: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_report_qweb_txt + - psql -h psql -U flectra -d test_report_qweb_txt -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_report_qweb_txt + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_txt + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_report_qweb_txt + --test-enable -i report_qweb_txt + --stop-after-init + --log-level error + --log-handler flectra.addons.report_qweb_txt:TEST" + +test_module_report_fillpdf: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_report_fillpdf + - psql -h psql -U flectra -d test_report_fillpdf -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_report_fillpdf + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_fillpdf + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_report_fillpdf + --test-enable -i report_fillpdf + --stop-after-init + --log-level error + --log-handler flectra.addons.report_fillpdf:TEST" + +test_module_report_qweb_parameter: + stage: testsingle + when: on_failure + image: + name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest + entrypoint: ["/bin/sh", "-c"] + script: + - apt-get install -y p7zip-full + - apt install -y expect-dev python-lxml pdftk wkhtmltopdf + - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt + - 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-tools.git ~/others/server-tools" + - 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_report_qweb_parameter + - psql -h psql -U flectra -d test_report_qweb_parameter -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_report_qweb_parameter + - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_parameter + - su - flectra -c "/opt/flectra/flectra-bin + --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --db_host psql + --db_port 5432 + --db_user flectra + --db_password flectra + --database test_report_qweb_parameter + --test-enable -i report_qweb_parameter + --stop-after-init + --log-level error + --log-handler flectra.addons.report_qweb_parameter:TEST" + diff --git a/README.md b/README.md index a008a43..8ce2a5c 100644 --- a/README.md +++ b/README.md @@ -9,20 +9,20 @@ Available addons addon | version | summary --- | --- | --- -[report_xlsx_helper](report_xlsx_helper/) | 1.0.1.0.0| Report xlsx helpers [report_xml](report_xml/) | 1.0.1.0.2| Allow to generate XML reports -[report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 1.0.1.0.0| Add watermarks to your QWEB PDF reports -[report_xlsx_helper_demo](report_xlsx_helper_demo/) | 1.0.1.0.0| Report xlsx helpers - demo -[report_csv](report_csv/) | 1.0.1.0.0| Base module to create csv report -[report_qweb_txt](report_qweb_txt/) | 1.0.1.0.0| Use Qweb to generate text and CSV reports -[bi_sql_editor_aggregate](bi_sql_editor_aggregate/) | 1.0.1.0.0| BI SQL Editor Aggregation [report_context](report_context/) | 1.0.1.0.0| Adding context to reports -[report_fillpdf](report_fillpdf/) | 1.0.1.0.1| Base module that fills PDFs -[report_xlsx](report_xlsx/) | 1.0.1.0.6| Base module to create xlsx report -[report_qweb_parameter](report_qweb_parameter/) | 1.0.1.0.0| Add new parameters for qweb templates in order to reduce field length and check minimal length +[report_xlsx_helper_demo](report_xlsx_helper_demo/) | 1.0.1.0.0| Report xlsx helpers - demo [bi_sql_editor](bi_sql_editor/) | 1.0.1.0.0| BI Views builder, based on Materialized or Normal SQL Views -[report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 1.0.1.0.1| Add new parameters for a paper format to be used by wkhtmltopdf command as arguments. +[report_csv](report_csv/) | 1.0.1.0.0| Base module to create csv report +[bi_sql_editor_aggregate](bi_sql_editor_aggregate/) | 1.0.1.0.0| BI SQL Editor Aggregation [report_qr](report_qr/) | 1.0.1.0.0| Web QR Manager +[report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 1.0.1.0.1| Add new parameters for a paper format to be used by wkhtmltopdf command as arguments. +[report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 1.0.1.0.0| Add watermarks to your QWEB PDF reports +[report_xlsx_helper](report_xlsx_helper/) | 1.0.1.0.0| Report xlsx helpers +[report_xlsx](report_xlsx/) | 1.0.1.0.6| Base module to create xlsx report [bi_view_editor](bi_view_editor/) | 1.0.1.0.0| Graphical BI views builder for Odoo +[report_qweb_txt](report_qweb_txt/) | 1.0.1.0.0| Use Qweb to generate text and CSV reports +[report_fillpdf](report_fillpdf/) | 1.0.1.0.1| Base module that fills PDFs +[report_qweb_parameter](report_qweb_parameter/) | 1.0.1.0.0| Add new parameters for qweb templates in order to reduce field length and check minimal length From 3f33c96897b516de5505ecd7671f652ae488848d Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 28 Nov 2021 03:22:36 +0000 Subject: [PATCH 2/2] Automatic Update form OCA2FC Migrator --- .gitlab-ci.yml | 64 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55d0373..9409516 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,8 @@ test_all_modules: - apt-get install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -38,7 +40,7 @@ test_all_modules: - 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-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -77,6 +79,8 @@ test_module_report_xml: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -89,7 +93,7 @@ test_module_report_xml: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_xml - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xml - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -111,6 +115,8 @@ test_module_report_context: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -123,7 +129,7 @@ test_module_report_context: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_context - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_context - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -145,6 +151,8 @@ test_module_report_xlsx_helper_demo: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -157,7 +165,7 @@ test_module_report_xlsx_helper_demo: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_xlsx_helper_demo - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx_helper_demo - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -179,6 +187,8 @@ test_module_bi_sql_editor: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -191,7 +201,7 @@ test_module_bi_sql_editor: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_bi_sql_editor - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_bi_sql_editor - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -213,6 +223,8 @@ test_module_report_csv: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -225,7 +237,7 @@ test_module_report_csv: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_csv - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_csv - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -247,6 +259,8 @@ test_module_bi_sql_editor_aggregate: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -259,7 +273,7 @@ test_module_bi_sql_editor_aggregate: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_bi_sql_editor_aggregate - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_bi_sql_editor_aggregate - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -281,6 +295,8 @@ test_module_report_qr: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -293,7 +309,7 @@ test_module_report_qr: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qr - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qr - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -315,6 +331,8 @@ test_module_report_wkhtmltopdf_param: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -327,7 +345,7 @@ test_module_report_wkhtmltopdf_param: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_wkhtmltopdf_param - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_wkhtmltopdf_param - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -349,6 +367,8 @@ test_module_report_qweb_pdf_watermark: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -361,7 +381,7 @@ test_module_report_qweb_pdf_watermark: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qweb_pdf_watermark - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_pdf_watermark - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -383,6 +403,8 @@ test_module_report_xlsx_helper: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -395,7 +417,7 @@ test_module_report_xlsx_helper: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_xlsx_helper - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx_helper - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -417,6 +439,8 @@ test_module_report_xlsx: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -429,7 +453,7 @@ test_module_report_xlsx: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_xlsx - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_xlsx - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -451,6 +475,8 @@ test_module_bi_view_editor: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -463,7 +489,7 @@ test_module_bi_view_editor: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_bi_view_editor - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_bi_view_editor - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -485,6 +511,8 @@ test_module_report_qweb_txt: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -497,7 +525,7 @@ test_module_report_qweb_txt: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qweb_txt - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_txt - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -519,6 +547,8 @@ test_module_report_fillpdf: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -531,7 +561,7 @@ test_module_report_fillpdf: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_fillpdf - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_fillpdf - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra @@ -553,6 +583,8 @@ test_module_report_qweb_parameter: - apt install -y expect-dev python-lxml pdftk wkhtmltopdf - pip3 install -r ${CI_PROJECT_DIR}/requirements.txt - 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-auth.git ~/others/server-auth" + - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-env.git ~/others/server-env" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/server-tools.git ~/others/server-tools" - 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 @@ -565,7 +597,7 @@ test_module_report_qweb_parameter: - mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_report_qweb_parameter - chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_report_qweb_parameter - su - flectra -c "/opt/flectra/flectra-bin - --addons-path ${CI_PROJECT_DIR},~/others/server-tools + --addons-path ${CI_PROJECT_DIR},~/others/server-auth,~/others/server-env,~/others/server-tools --db_host psql --db_port 5432 --db_user flectra