mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-30 09:16:52 +02:00
24cdfa68b6
* Set up code coverage within Travis for Code Climate * Include CodeClimate badges on ReadMe
21 lines
582 B
YAML
21 lines
582 B
YAML
language: go
|
|
go:
|
|
- 1.14.x
|
|
env:
|
|
- COVER=true
|
|
install:
|
|
# Fetch dependencies
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.24.0
|
|
- GO111MODULE=on go mod download
|
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
- chmod +x ./cc-test-reporter
|
|
before_script:
|
|
- ./cc-test-reporter before-build
|
|
script:
|
|
- make test
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t gocov
|
|
sudo: false
|
|
notifications:
|
|
email: false
|