Commit 15794c69 authored by Suru Dissanaike's avatar Suru Dissanaike

redesign CI

parent d4d42509
Pipeline #903 passed with stages
in 1 minute and 49 seconds
......@@ -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
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