3 Commits

Author SHA1 Message Date
Renovate 77683945df Add renovate.json 2024-05-09 10:58:00 +00:00
argoyle 914e1604a5 Merge branch 'codecov' into 'master'
ci: change to codecov binary instead of bash uploader

See merge request unboundsoftware/go-kafka!1
2021-11-17 13:01:59 +00:00
argoyle 0f1d502a39 ci: change to codecov binary instead of bash uploader 2021-11-17 13:59:54 +01:00
2 changed files with 21 additions and 17 deletions
+15 -17
View File
@@ -17,34 +17,32 @@
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
image: golang:1.15
image: golang:1.17
variables:
GOFLAGS: -mod=readonly
stages:
- deps
- test
- deps
- test
deps:
stage: deps
script:
- go mod download
- go mod download
test:
stage: test
dependencies:
- deps
- deps
script:
- go get golang.org/x/lint/golint
- go fmt $(go list ./...)
- go vet $(go list ./...)
- golint -set_exit_status ./...
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
- go tool cover -html=coverage.txt -o coverage.html
- go tool cover -func=coverage.txt
- bash <(curl -s https://codecov.io/bash)
artifacts:
paths:
- coverage.html
- coverage.txt
- go get golang.org/x/lint/golint
- go fmt $(go list ./...)
- go vet $(go list ./...)
- golint -set_exit_status ./...
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
- go tool cover -html=coverage.txt -o coverage.html
- go tool cover -func=coverage.txt
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN}
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}