File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ build_test_linux_fv:
58
58
script :
59
59
- $CI_PROJECT_DIR/scripts/linux/fv/gitlab_build_fv.sh
60
60
- $CI_PROJECT_DIR/scripts/linux/fv/gitlab_test_fv.sh
61
+ - $CI_PROJECT_DIR/scripts/linux/fv/gitlab-olp-cpp-sdk-functional-network-test.sh
61
62
only :
62
63
refs :
63
64
- branches
@@ -146,13 +147,16 @@ translate_report_fv:
146
147
- python -m junit2htmlreport --report-matrix reports/unit-index.html reports/olp-dataservice-write-test-report.xml reports/olp-dataservice-read-test-report.xml reports/olp-core-test-report.xml reports/olp-authentication-test-report.xml
147
148
- python -m junit2htmlreport --report-matrix reports/integration-index.html reports/olp-integration*.xml
148
149
- python -m junit2htmlreport --report-matrix reports/index.html reports/*.xml
150
+ - python -m junit2htmlreport --report-matrix reports/fun-network-index.html reports/olp-functional-network-test-report.xml
151
+ - sed -i -e 's/Reports\ Matrix/Functional\ Network\ Test\ Report/g' reports/fun-network-index.html
149
152
- sed -i -e 's/Reports\ Matrix/Unit\ Test\ Report/g' reports/unit-index.html
150
153
- sed -i -e 's/Reports\ Matrix/Integration\ Test\ Report/g' reports/integration-index.html
151
154
- sed -i -e 's/Reports\ Matrix/Functional\ Test\ Report/g' reports/functional-index.html
152
155
- sed -i -e 's/Reports\ Matrix/Full\ Test\ Report/g' reports/index.html
153
156
- cat reports/unit-index.html >> reports/index.html
154
157
- cat reports/integration-index.html >> reports/index.html
155
158
- cat reports/functional-index.html >> reports/index.html
159
+ - cat reports/fun-network-index.html >> reports/index.html
156
160
- mkdir -p .public
157
161
- cp reports/*ndex.html .public/
158
162
artifacts :
Original file line number Diff line number Diff line change 20
20
# For core dump backtrace
21
21
ulimit -c unlimited
22
22
23
+ # Set workspace location
24
+ if [[ ${CI_PROJECT_DIR} == " " ]]; then
25
+ export CI_PROJECT_DIR=` pwd`
26
+ fi
27
+
23
28
echo " >>> Starting Mock Server... >>>"
24
29
pushd tests/utils/mock-server
25
30
npm install
@@ -46,11 +51,14 @@ echo "mock-server-cert.pem" >> /etc/ca-certificates.conf
46
51
update-ca-certificates
47
52
48
53
echo " >>> Start network tests ... >>>"
49
- $REPO_HOME /build/tests/functional/network/olp-cpp-sdk-functional-network-tests \
50
- --gtest_output=" xml:$REPO_HOME /reports/olp-functional-network-test-report.xml"
54
+ $CI_PROJECT_DIR /build/tests/functional/network/olp-cpp-sdk-functional-network-tests \
55
+ --gtest_output=" xml:$CI_PROJECT_DIR /reports/olp-functional-network-test-report.xml"
56
+ result=$?
51
57
echo " >>> Finished network tests >>>"
52
58
53
59
# Terminate the mock server
54
60
kill -TERM $SERVER_PID
55
61
56
62
wait
63
+
64
+ exit ${result}
You can’t perform that action at this time.
0 commit comments