mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-09 23:34:38 +01:00
111 lines
2.7 KiB
YAML
111 lines
2.7 KiB
YAML
include:
|
|
- project: 'iopsys/gitlab-ci-pipeline'
|
|
file: '/static-code-analysis.yml'
|
|
- project: 'docs/portal2/pipeline-template'
|
|
file: 'MkDocs.gitlab-ci.yml'
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == "devel"
|
|
|
|
variables:
|
|
DEBUG: 'TRUE'
|
|
SOURCE_FOLDER: "."
|
|
COMMON_IMAGE: dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/code-analysis:0.27
|
|
RUN_CPPCHECK: "cppcheck --enable=information --error-exitcode=1 -DBBFDM_ENABLE_DOTSO_PLUGIN -DBBFDM_ENABLE_DOTSO_PLUGIN -DBBF_TR181 -DBBF_VENDOR_IOPSYS --inline-suppr -i test/"
|
|
|
|
stages:
|
|
- static_code_analysis
|
|
- unit_test
|
|
- functional_test
|
|
- deploy
|
|
|
|
run_unit_test:
|
|
stage: unit_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/install-dependencies.sh"
|
|
- "./gitlab-ci/setup.sh"
|
|
- "./gitlab-ci/unit-test.sh"
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- timestamp.log
|
|
- unit-test-coverage.xml
|
|
|
|
run_tools_test:
|
|
stage: unit_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/tools-test.sh"
|
|
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- timestamp.log
|
|
- tools/out/datamodel_default.xml
|
|
- tools/out/datamodel_hdm.xml
|
|
- tools/out/datamodel.xls
|
|
|
|
run_libbbfdm_api_functional_test:
|
|
stage: functional_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/install-dependencies.sh"
|
|
- "./gitlab-ci/setup.sh"
|
|
- "./gitlab-ci/functional-api-test.sh"
|
|
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- timestamp.log
|
|
- functional-api-test-coverage.xml
|
|
|
|
run_libbbfdm_functional_test:
|
|
stage: functional_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/install-dependencies.sh"
|
|
- "./gitlab-ci/setup.sh"
|
|
- "./gitlab-ci/functional-test.sh"
|
|
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- timestamp.log
|
|
- functional-test-coverage.xml
|
|
|
|
run_libbbfdm_memory_test:
|
|
stage: functional_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/install-dependencies.sh"
|
|
- "./gitlab-ci/setup.sh"
|
|
- "./gitlab-ci/memory-test.sh"
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- timestamp.log
|
|
- output-report-device-get.txt
|
|
|
|
run_bbfd_functional_test:
|
|
stage: functional_test
|
|
image: ${COMMON_IMAGE}
|
|
allow_failure: false
|
|
script:
|
|
- "./gitlab-ci/install-dependencies.sh"
|
|
- "./gitlab-ci/setup.sh"
|
|
- "./gitlab-ci/bbfdmd-functional-test.sh"
|
|
artifacts:
|
|
when: always
|
|
reports:
|
|
junit: ./report/*.xml
|
|
paths:
|
|
- funl-result.log
|
|
- funl-test-coverage.xml
|
|
- /tmp/memory-report.xml
|
|
- timestamp.log
|
|
- report/
|