mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-15 02:32:06 +00:00
307 lines
14 KiB
YAML
307 lines
14 KiB
YAML
|
image: ubuntu:jammy
|
||
|
|
||
|
stages:
|
||
|
- testall
|
||
|
- testsingle
|
||
|
|
||
|
variables:
|
||
|
POSTGRES_DB: postgres
|
||
|
POSTGRES_USER: flectra
|
||
|
POSTGRES_PASSWORD: flectra
|
||
|
POSTGRES_HOST: postgres
|
||
|
POSTGRES_PORT: "5432"
|
||
|
|
||
|
services:
|
||
|
- name: postgres:14-bullseye
|
||
|
alias: psql
|
||
|
|
||
|
|
||
|
test_all_modules:
|
||
|
stage: testall
|
||
|
image:
|
||
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||
|
entrypoint: ["/bin/sh", "-c"]
|
||
|
script:
|
||
|
- apt-get install -y p7zip-full
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_all
|
||
|
- psql -h psql -U flectra -d test_all -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_all
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_all
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_all
|
||
|
--test-enable
|
||
|
--init base_technical_features,base_search_custom_field_filter,sequence_reset_period,base_tier_validation,base_revision,date_range_account,date_range,base_tier_validation_formula
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_technical_features:TEST
|
||
|
--log-handler flectra.addons.base_search_custom_field_filter:TEST
|
||
|
--log-handler flectra.addons.sequence_reset_period:TEST
|
||
|
--log-handler flectra.addons.base_tier_validation:TEST
|
||
|
--log-handler flectra.addons.base_revision:TEST
|
||
|
--log-handler flectra.addons.date_range_account:TEST
|
||
|
--log-handler flectra.addons.date_range:TEST
|
||
|
--log-handler flectra.addons.base_tier_validation_formula:TEST
|
||
|
"
|
||
|
|
||
|
|
||
|
test_module_base_technical_features:
|
||
|
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
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_base_technical_features
|
||
|
- psql -h psql -U flectra -d test_base_technical_features -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_technical_features
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_technical_features
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_base_technical_features
|
||
|
--test-enable -i base_technical_features
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_technical_features:TEST"
|
||
|
|
||
|
test_module_base_search_custom_field_filter:
|
||
|
stage: testsingle
|
||
|
when: on_failure
|
||
|
image:
|
||
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||
|
entrypoint: ["/bin/sh", "-c"]
|
||
|
script:
|
||
|
- apt-get install -y p7zip-full
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_base_search_custom_field_filter
|
||
|
- psql -h psql -U flectra -d test_base_search_custom_field_filter -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_search_custom_field_filter
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_search_custom_field_filter
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_base_search_custom_field_filter
|
||
|
--test-enable -i base_search_custom_field_filter
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_search_custom_field_filter:TEST"
|
||
|
|
||
|
test_module_sequence_reset_period:
|
||
|
stage: testsingle
|
||
|
when: on_failure
|
||
|
image:
|
||
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||
|
entrypoint: ["/bin/sh", "-c"]
|
||
|
script:
|
||
|
- apt-get install -y p7zip-full
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_sequence_reset_period
|
||
|
- psql -h psql -U flectra -d test_sequence_reset_period -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_sequence_reset_period
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_sequence_reset_period
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_sequence_reset_period
|
||
|
--test-enable -i sequence_reset_period
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.sequence_reset_period:TEST"
|
||
|
|
||
|
test_module_base_tier_validation:
|
||
|
stage: testsingle
|
||
|
when: on_failure
|
||
|
image:
|
||
|
name: registry.gitlab.com/jamotion/flectra/ubuntudev:2-latest
|
||
|
entrypoint: ["/bin/sh", "-c"]
|
||
|
script:
|
||
|
- apt-get install -y p7zip-full
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation
|
||
|
- psql -h psql -U flectra -d test_base_tier_validation -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_base_tier_validation
|
||
|
--test-enable -i base_tier_validation
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_tier_validation:TEST"
|
||
|
|
||
|
test_module_base_revision:
|
||
|
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
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_base_revision
|
||
|
- psql -h psql -U flectra -d test_base_revision -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_revision
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_revision
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_base_revision
|
||
|
--test-enable -i base_revision
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_revision:TEST"
|
||
|
|
||
|
test_module_date_range_account:
|
||
|
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
|
||
|
- 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_date_range_account
|
||
|
- psql -h psql -U flectra -d test_date_range_account -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_date_range_account
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_date_range_account
|
||
|
- 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_date_range_account
|
||
|
--test-enable -i date_range_account
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.date_range_account:TEST"
|
||
|
|
||
|
test_module_date_range:
|
||
|
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
|
||
|
- 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_date_range
|
||
|
- psql -h psql -U flectra -d test_date_range -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_date_range
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_date_range
|
||
|
- 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_date_range
|
||
|
--test-enable -i date_range
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.date_range:TEST"
|
||
|
|
||
|
test_module_base_tier_validation_formula:
|
||
|
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
|
||
|
- su - flectra -c "mkdir ~/others"
|
||
|
- sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
|
||
|
- mkdir ${CI_PROJECT_DIR}/ci_data
|
||
|
- wget -O ${CI_PROJECT_DIR}/ci_data/test_base.zip https://gitlab.com/flectra-community/devops/oca2fc/raw/master/ci_data/test_base.zip
|
||
|
- 7z x -o ${CI_PROJECT_DIR}/ci_data/ ${CI_PROJECT_DIR}/ci_data/test_base.zip
|
||
|
- export PGPASSWORD="flectra"
|
||
|
- createdb -h psql -U flectra -O flectra -T template1 test_base_tier_validation_formula
|
||
|
- psql -h psql -U flectra -d test_base_tier_validation_formula -f ${CI_PROJECT_DIR}/ci_data/dump.sql
|
||
|
- su - flectra -c "mkdir -p ~/.local/share/filestore"
|
||
|
- mv ${CI_PROJECT_DIR}/ci_data/filestore /opt/flectra/.local/share/filestore/test_base_tier_validation_formula
|
||
|
- chown -R flectra.flectra /opt/flectra/.local/share/filestore/test_base_tier_validation_formula
|
||
|
- su - flectra -c "/opt/flectra/flectra-bin
|
||
|
--addons-path ${CI_PROJECT_DIR}
|
||
|
--db_host psql
|
||
|
--db_port 5432
|
||
|
--db_user flectra
|
||
|
--db_password flectra
|
||
|
--database test_base_tier_validation_formula
|
||
|
--test-enable -i base_tier_validation_formula
|
||
|
--stop-after-init
|
||
|
--log-level error
|
||
|
--log-handler flectra.addons.base_tier_validation_formula:TEST"
|
||
|
|