Commit b358f4d3 authored by Pitchaiah Murugan's avatar Pitchaiah Murugan
Browse files

Configure gilab pipleine to build unit , funtional test.

parent bf462759
Pipeline #1780 passed with stages
in 1 minute and 27 seconds
......@@ -4,7 +4,37 @@ include:
stages:
- static_code_analysis
- unit_test
- functional_test
variables:
DEBUG: 'TRUE'
SOURCE_FOLDER: "."
run_unit_test:
stage: unit_test
image: iopsys/code-analysis:0.20
allow_failure: true
script:
- "./gitlab-ci/setup.sh"
- "./gitlab-ci/unit-test.sh"
artifacts:
when: always
paths:
- unit-test-coverage.xml
- timestamp.log
run_functional_test:
stage: functional_test
image: iopsys/code-analysis:0.20
allow_failure: true
script:
- "./gitlab-ci/setup.sh"
- "./gitlab-ci/functional-test.sh"
artifacts:
when: always
paths:
- functional-test-coverage.xml
- timestamp.log
\ No newline at end of file
#!/bin/bash
echo "Running functional test cases"
pwd
make functional-test -C ./
#report part
#GitLab-CI output
gcovr -r .
# Artefact
gcovr -r . --xml -o ./functional-test-coverage.xml
date +%s > timestamp.log
\ No newline at end of file
#!/bin/bash
echo "Setting up for Broadcom test cases"
pwd
cmake -DCMAKE_BUILD_TYPE=Debug -DSELECT_BRCM_BOARD=1 . && \
make
\ No newline at end of file
#!/bin/bash
echo "Running unit test cases"
pwd
make unit-test -C ./
#report part
#GitLab-CI output
gcovr -r .
# Artefact
gcovr -r . --xml -o ./unit-test-coverage.xml
date +%s > timestamp.log
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment