mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-01-28 01:27:16 +01:00
72 lines
1.8 KiB
YAML
72 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 --force --enable=all --error-exitcode=1 -D_GNU_SOURCE --include=/usr/include/libubox/list.h --include=/usr/include/uci.h -I ./inc --suppress=unusedFunction -i ./test/ --inline-suppr"
|
|
SOURCE_FOLDER: "."
|
|
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
|