File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ pipeline {
71
71
steps {
72
72
sh ' ./scripts/ci/build-frontend'
73
73
sh ' ./scripts/ci/test-backend'
74
- sh ' ./scripts/ci/build-backend'
74
+ // Temporarily disable building backend binaries
75
+ // sh './scripts/ci/build-backend'
75
76
// Build the docker image used for testing below
76
77
sh ''' docker build --pull --no-cache \\
77
78
-t "${IMAGE}:${BRANCH_LOWER}-ci-${BUILD_NUMBER}" \\
@@ -84,12 +85,13 @@ pipeline {
84
85
}
85
86
post {
86
87
success {
87
- archiveArtifacts allowEmptyArchive : false , artifacts : ' bin/*'
88
+ junit ' test/results/junit/*'
89
+ // archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*'
88
90
publishHTML([
89
91
allowMissing : false ,
90
92
alwaysLinkToLastBuild : false ,
91
93
keepAll : false ,
92
- reportDir : ' html-reports' ,
94
+ reportDir : ' test/results/ html-reports' ,
93
95
reportFiles : ' backend-coverage.html' ,
94
96
reportName : ' HTML Reports' ,
95
97
useWrapperFileDirectly : true
Original file line number Diff line number Diff line change @@ -44,10 +44,11 @@ if [ "${1:-}" = "--inside-docker" ]; then
44
44
cd /app/backend
45
45
[ -z " $( go tool fix -diff ./internal) " ]
46
46
go test -json -cover -coverprofile=" /tmp/coverage.out" ./internal/... | tparse
47
- mkdir " $DIR /../../html-reports"
48
- go tool cover -html=" /tmp/coverage.out" -o " $DIR /../../html-reports/backend-coverage.html"
47
+ mkdir -p " $DIR /../../test/results/html-reports" " $DIR /../../test/results/junit"
48
+ go tool cover -html=" /tmp/coverage.out" -o " $DIR /../../test/results/html-reports/backend-coverage.html"
49
+ go test -v -tags=" unit integration" -covermode=atomic ./internal/... 2>&1 | go-junit-report -set-exit-code > " $DIR /../../test/results/junit/backend.xml"
49
50
rm -f " /tmp/coverage.out"
50
- chown -R 1000:1000 " $DIR /../../html-reports "
51
+ chown -R 1000:1000 " $DIR /../../test/results "
51
52
golangci-lint -v run ./...
52
53
else
53
54
# run this script from within docker
You can’t perform that action at this time.
0 commit comments