mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Add vendor folder to git
This commit is contained in:
parent
66cf5eaafb
commit
183585f56f
6916 changed files with 2629581 additions and 1 deletions
25
vendor/github.com/go-openapi/loads/hack/build-drone.sh
generated
vendored
Normal file
25
vendor/github.com/go-openapi/loads/hack/build-drone.sh
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
set -e -o pipefail
|
||||
|
||||
mkdir -p /drone/{testresults,coverage,dist}
|
||||
go test -race -timeout 20m -v ./... | go-junit-report -dir /drone/testresults
|
||||
|
||||
# Run test coverage on each subdirectories and merge the coverage profile.
|
||||
echo "mode: ${GOCOVMODE-count}" > profile.cov
|
||||
|
||||
# Standard go tooling behavior is to ignore dirs with leading underscores
|
||||
# skip generator for race detection and coverage
|
||||
for dir in $(go list ./...)
|
||||
do
|
||||
pth="$GOPATH/src/$dir"
|
||||
go test -covermode=${GOCOVMODE-count} -coverprofile=${pth}/profile.out $dir
|
||||
if [ -f $pth/profile.out ]
|
||||
then
|
||||
cat $pth/profile.out | tail -n +2 >> profile.cov
|
||||
# rm $pth/profile.out
|
||||
fi
|
||||
done
|
||||
|
||||
go tool cover -func profile.cov
|
||||
gocov convert profile.cov | gocov report
|
||||
gocov convert profile.cov | gocov-html > /drone/coverage/coverage-${CI_BUILD_NUM-"0"}.html
|
||||
Loading…
Add table
Add a link
Reference in a new issue