icwmp/.gitlab-ci.yml
Vivek Kumar Dutta 6a64707419 Update ci paths
2023-04-18 16:42:02 +05:30

79 lines
2 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'
COMMON_IMAGE: "dev.iopsys.eu:5050/iopsys/gitlab-ci-pipeline/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
- 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
- /tmp/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
- api-test-coverage.xml
- /tmp/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
- funl-test-coverage.xml
- funl-test-result.log
- funl-test-debug.log
- /tmp/memory-report.xml
- memory-report-download.xml
- icwmpd_debug.txt