mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-15 19:22:46 -06:00
1bb79696c6
This includes a bugfix to the cty/msgpack package to ensure correct decoding of unknown and null values. This also includes updates to cty's dependencies.
18 lines
612 B
Bash
18 lines
612 B
Bash
#!/bin/bash
|
|
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
go get github.com/ChrisTrenkamp/goxpath/cmd/goxpath
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
go test >/dev/null 2>&1
|
|
if [ $? != 0 ]; then
|
|
go test
|
|
exit 1
|
|
fi
|
|
gometalinter --deadline=1m ./...
|
|
go list -f '{{if gt (len .TestGoFiles) 0}}"go test -covermode count -coverprofile {{.Name}}.coverprofile -coverpkg ./... {{.ImportPath}}"{{end}} >/dev/null' ./... | xargs -I {} bash -c {} 2>/dev/null
|
|
gocovmerge `ls *.coverprofile` > coverage.txt
|
|
go tool cover -html=coverage.txt -o coverage.html
|
|
firefox coverage.html
|
|
rm coverage.html coverage.txt *.coverprofile
|