Skip to content
Snippets Groups Projects
Commit 15794c69 authored by Suru Dissanaike's avatar Suru Dissanaike
Browse files

redesign CI

parent d4d42509
Branches
No related tags found
No related merge requests found
Pipeline #903 passed with warnings
......@@ -17,3 +17,5 @@ wifimngr
*.log
*.so
*.xml
.DS_Store
......@@ -25,8 +25,9 @@ run_api_test:
reports:
junit: ./report/tap.xml
paths:
- api-test-coverage.html
- api-test-coverage.xml
- api-test-memory-report.xml
- timestamp.log
run_unit_test:
stage: unit_test
......@@ -39,7 +40,8 @@ run_unit_test:
artifacts:
when: always
paths:
- unit-test-coverage.html
- unit-test-coverage.xml
- timestamp.log
run_functional_test:
stage: functional_test
......@@ -52,4 +54,5 @@ run_functional_test:
artifacts:
when: always
paths:
- functional-test-coverage.html
- functional-test-coverage.xml
- timestamp.log
#!/bin/bash
echo "preparation script"
pwd
make coverage -C ./
......@@ -12,14 +11,16 @@ supervisorctl status all
# run API validation
ubus-api-validator -d ./test/api/json/ > ./api-result.log
supervisorctl stop all
supervisorctl status
#report part
gcovr -r . --html --html-details -o ./api-test-coverage.html
gcovr -r . --xml -o ./api-test-coverage.xml
gcovr -r .
cp /opt/work/memory-report.xml /builds/iopsys/wifimngr/api-test-memory-report.xml
tap-junit --input ./api-result.log --output report
date +%s > timestamp.log
#!/bin/bash
echo "preparation script"
pwd
supervisorctl status all
......@@ -18,5 +17,6 @@ supervisorctl status
#GitLab-CI output
gcovr -r .
# Artefact
gcovr -r . --html --html-details -o ./functional-test-coverage.html
gcovr -r . --xml -o ./functional-test-coverage.xml
date +%s > timestamp.log
#!/bin/bash
echo "preparation script"
pwd
make unit-test -C ./
......@@ -10,4 +9,5 @@ make unit-test -C ./
#GitLab-CI output
gcovr -r .
# Artefact
gcovr -r . --html --html-details -o ./unit-test-coverage.html
gcovr -r . --xml -o ./unit-test-coverage.xml
date +%s > timestamp.log
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment