define custom install to make go modules work

This commit is contained in:
Cody Lee 2020-02-26 16:56:56 -06:00
parent 6163a31d56
commit cfa0e76c89
No known key found for this signature in database
GPG key ID: F967B79BA7C600E1

View file

@ -1,5 +1,3 @@
go_import_path: github.com/spf13/viper
language: go language: go
env: env:
@ -19,6 +17,10 @@ matrix:
- go: tip - go: tip
fast_finish: true fast_finish: true
install:
- gimme 1.14.x
- go mod vendor
script: script:
- go mod tidy - go mod tidy
- diff -u <(echo -n) <(gofmt -d .) - diff -u <(echo -n) <(gofmt -d .)