icwmp/.gitlab-ci.yml
2022-07-14 14:08:22 +01:00

73 lines
1.8 KiB
YAML

include:
- project: 'iopsys/gitlab-ci-pipeline'
file: '/static-code-analysis.yml'
variables:
DEBUG: 'TRUE'
COMMON_IMAGE: "iopsys/code-analysis:0.27"
RUN_CPPCHECK: "cppcheck --enable=all --error-exitcode=1 -D_GNU_SOURCE --suppress=unusedFunction -i ./test/ --inline-suppr"
SOURCE_FOLDER: "./src"
CWMP_WORKER_PROCESSES: 1
NBI_WORKER_PROCESSES: 1
FS_WORKER_PROCESSES: 1
UI_WORKER_PROCESSES: 1
stages:
- static_code_analysis
- unit_test
- functional_test
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
- memory-report.xml
- unit-test-coverage.xml
run_api_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
reports:
junit: ./report/tap.xml
paths:
- timestamp.log
- api-test-coverage.xml
- api-test-memory-report.xml
- api-test-result.log
run_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
reports:
junit: ./report/tap.xml
paths:
- timestamp.log
- funl-test-coverage.xml
- funl-test-memory-report.xml
- funl-test-result.log
- funl-test-debug.log
- icwmpd_debug.txt