2018-05-09 01:53:14 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2022-01-14 13:01:10 +08:00
|
|
|
- 1.16.x
|
|
|
|
- 1.17.x
|
2018-05-09 01:53:14 +08:00
|
|
|
- stable
|
2020-11-13 14:53:58 +08:00
|
|
|
before_install:
|
2022-01-14 13:29:17 +08:00
|
|
|
- go get golang.org/x/tools/cmd/cover
|
2020-11-13 14:53:58 +08:00
|
|
|
- go get github.com/mattn/goveralls
|
2018-05-09 01:53:14 +08:00
|
|
|
script:
|
|
|
|
- go get -t ./...
|
2019-02-18 15:05:59 +08:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2021-03-06 15:07:39 +08:00
|
|
|
# Temporarily set -mod=mod to allow modification of go.mod and go.sum.
|
|
|
|
# This seems to be caused by a sum missing in the tcell dependency and
|
|
|
|
# should be removed when no longer needed.
|
2022-01-14 13:29:17 +08:00
|
|
|
- go test -v -covermode=count -coverprofile=coverage.out -mod=mod ./...
|
2021-03-06 15:07:39 +08:00
|
|
|
- CGO_ENABLED=1 go test -mod=mod -race ./...
|
2018-05-09 01:53:14 +08:00
|
|
|
- go vet ./...
|
|
|
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
2022-07-08 01:35:59 +08:00
|
|
|
- diff -u <(echo -n) <(./private/scripts/autogen_licences.sh .)
|
2019-02-18 15:05:59 +08:00
|
|
|
- diff -u <(echo -n) <(golint ./...)
|
2022-01-14 13:29:17 +08:00
|
|
|
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
|
2019-05-21 16:53:16 +08:00
|
|
|
env:
|
|
|
|
global:
|
2020-06-21 02:31:30 +08:00
|
|
|
- CGO_ENABLED=0
|
2020-11-13 15:07:17 +08:00
|
|
|
- secure: VOOh/w2YNAn+psiWYjIOQ5ZhhMb6Wz7zzmhIlj0dc5mGQztFAX5TuNWOU5JokvOigFy18JhPeDJRmp661xqM4gy1Znx1odSXES3YdCwt42pmpjYIkI9lI09xTRH6WYIRmYfCHe4J3A9/CWLeDRaAU1e+YqmNyraaGzE82ouUPH/I4A9gur4j4j6t1X/t0iovyd/4qNDsetUPevQsJS224Pv6Xhg3LGnSAXMPM+tu0t3UeEfRu/l9OgP6/bnet9BUx0BryFCVJp6fAtq7x61+WRIJesugrhHVgl/dz8CgFsVjRkqWQSNnZvt07dHNOX0mZj2U22OAkH+9ZN93wScs3bDZFXozrta7eOWhrJLcJTMrAxdHYMNKmoXqQQ0TGFV/L9blOtT8uj9US3wxeD11s4TyZePWIC5hnpUsNFoGPsBB45uwW2TSwvTTEL9bxWWzjYzSkLG5P6Kk4/JkeMh3OMFCM/LutX8QDch1n/s0CfXdy7qgh5G4I9ZhGTU+huJlumeuM4U+my0EPnA3uclJ97cw0n6K7MKwKCTTA8La2ifATunKC/U4Hjo1rf9DxofIrRIvwV5zEUIn1r6ut5fO+o+MWDupkvsMqIA7QJyCLhRp+pAlPWGDZLdrFEicN/kpULH4IGUIPn532gXzEOAG+Aq0WYDVPXGLSifSyxafiDk=
|