reporting-engine/.gitlab-ci.yml

563 lines
27 KiB
YAML
Raw Normal View History

2021-03-23 19:37:36 +00:00
image: ubuntu:xenial
stages:
- testall
- testsingle
variables:
POSTGRES_DB: postgres
POSTGRES_USER: flectra
POSTGRES_PASSWORD: flectra
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
services:
- name: postgres:10-alpine
alias: psql
test_all_modules:
stage: testall
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:1-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt-get install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
- createdb -h psql -U flectra -O flectra -T template1 test_all
- psql -h psql -U flectra -d test_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql
- su - flectra -c "mkdir -p ~/.local/share/filestore"
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_all
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_all
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
--database test_all
--test-enable
2021-05-27 12:22:28 +00:00
--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
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--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
2021-03-23 19:37:36 +00:00
--log-handler flectra.addons.bi_sql_editor_aggregate:TEST
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_context:TEST
2021-03-23 19:37:36 +00:00
--log-handler flectra.addons.report_fillpdf:TEST
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_xlsx:TEST
2021-03-23 19:37:36 +00:00
--log-handler flectra.addons.report_qweb_parameter:TEST
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.bi_sql_editor:TEST
2021-03-23 19:37:36 +00:00
--log-handler flectra.addons.report_wkhtmltopdf_param:TEST
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_qr:TEST
--log-handler flectra.addons.bi_view_editor:TEST
2021-03-23 19:37:36 +00:00
"
2021-05-27 12:22:28 +00:00
test_module_report_xlsx_helper:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_xlsx_helper
--test-enable -i report_xlsx_helper
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_xlsx_helper:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_xml:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_report_xml
- psql -h psql -U flectra -d test_report_xml -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_xml
--test-enable -i report_xml
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_xml:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_qweb_pdf_watermark:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_qweb_pdf_watermark
--test-enable -i report_qweb_pdf_watermark
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_qweb_pdf_watermark:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_xlsx_helper_demo:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_report_xlsx_helper_demo
- psql -h psql -U flectra -d test_report_xlsx_helper_demo -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_xlsx_helper_demo
--test-enable -i report_xlsx_helper_demo
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_xlsx_helper_demo:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_csv:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_report_csv
- psql -h psql -U flectra -d test_report_csv -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_csv
--test-enable -i report_csv
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_csv:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_qweb_txt:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_qweb_txt
--test-enable -i report_qweb_txt
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_qweb_txt:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_bi_sql_editor_aggregate:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_bi_sql_editor_aggregate
- psql -h psql -U flectra -d test_bi_sql_editor_aggregate -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_bi_sql_editor_aggregate
--test-enable -i bi_sql_editor_aggregate
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.bi_sql_editor_aggregate:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_context:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_context
--test-enable -i report_context
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_context:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_fillpdf:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_fillpdf
--test-enable -i report_fillpdf
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_fillpdf:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_xlsx:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_xlsx
--test-enable -i report_xlsx
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_xlsx:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_qweb_parameter:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_qweb_parameter
--test-enable -i report_qweb_parameter
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_qweb_parameter:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_bi_sql_editor:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_bi_sql_editor
--test-enable -i bi_sql_editor
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.bi_sql_editor:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_wkhtmltopdf_param:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_report_wkhtmltopdf_param
- psql -h psql -U flectra -d test_report_wkhtmltopdf_param -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_wkhtmltopdf_param
--test-enable -i report_wkhtmltopdf_param
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_wkhtmltopdf_param:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_report_qr:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_report_qr
--test-enable -i report_qr
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.report_qr:TEST"
2021-03-23 19:37:36 +00:00
2021-05-27 12:22:28 +00:00
test_module_bi_view_editor:
2021-03-23 19:37:36 +00:00
stage: testsingle
when: on_failure
image:
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
entrypoint: ["/bin/sh", "-c"]
script:
- apt-get install -y p7zip-full
- apt install -y expect-dev python-lxml pdftk wkhtmltopdf
- pip3 install -r ${CI_PROJECT_DIR}/requirements.txt
- su - flectra -c "mkdir ~/others"
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
- mkdir ${CI_PROJECT_DIR}/ci_data
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
- export PGPASSWORD="flectra"
2021-05-27 12:22:28 +00:00
- createdb -h psql -U flectra -O flectra -T template1 test_bi_view_editor
- psql -h psql -U flectra -d test_bi_view_editor -f ${CI_PROJECT_DIR}/ci_data/dump.sql
2021-03-23 19:37:36 +00:00
- su - flectra -c "mkdir -p ~/.local/share/filestore"
2021-05-27 12:22:28 +00:00
- 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
2021-03-23 19:37:36 +00:00
- su - flectra -c "/opt/flectra/flectra-bin
--addons-path ${CI_PROJECT_DIR}
--db_host psql
--db_port 5432
--db_user flectra
--db_password flectra
2021-05-27 12:22:28 +00:00
--database test_bi_view_editor
--test-enable -i bi_view_editor
2021-03-23 19:37:36 +00:00
--stop-after-init
--log-level error
2021-05-27 12:22:28 +00:00
--log-handler flectra.addons.bi_view_editor:TEST"
2021-03-23 19:37:36 +00:00