mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Tweaks to html report
This commit is contained in:
parent
4ec1b4ed5a
commit
3379f3a665
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -87,11 +87,11 @@ pipeline {
|
||||
archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*'
|
||||
publishHTML([
|
||||
allowMissing: false,
|
||||
alwaysLinkToLastBuild: true,
|
||||
alwaysLinkToLastBuild: false,
|
||||
keepAll: false,
|
||||
reportDir: 'backend-coverage',
|
||||
reportFiles: 'index.html',
|
||||
reportName: 'Backend Coverage',
|
||||
reportDir: 'html-reports',
|
||||
reportFiles: 'backend-coverage.html',
|
||||
reportName: 'HTML Reports',
|
||||
useWrapperFileDirectly: true
|
||||
])
|
||||
}
|
||||
|
@ -44,10 +44,10 @@ if [ "${1:-}" = "--inside-docker" ]; then
|
||||
cd /app/backend
|
||||
[ -z "$(go tool fix -diff ./internal)" ]
|
||||
go test -json -cover -coverprofile="/tmp/coverage.out" ./internal/... | tparse
|
||||
mkdir "$DIR/../../backend-coverage"
|
||||
go tool cover -html="/tmp/coverage.out" -o "$DIR/../../backend-coverage/index.html"
|
||||
mkdir "$DIR/../../html-reports"
|
||||
go tool cover -html="/tmp/coverage.out" -o "$DIR/../../html-reports/backend-coverage.html"
|
||||
rm -f "/tmp/coverage.out"
|
||||
chown -R 1000:1000 "$DIR/../../backend-coverage"
|
||||
chown -R 1000:1000 "$DIR/../../html-reports"
|
||||
golangci-lint -v run ./...
|
||||
else
|
||||
# run this script from within docker
|
||||
|
Loading…
Reference in New Issue
Block a user