2016-12-12 21:23:47 +03:00
|
|
|
language: go
|
2018-09-12 21:29:07 +03:00
|
|
|
go: 1.11.x
|
|
|
|
go_import_path: moul.io/protoc-gen-gotemplate
|
2016-12-13 19:37:26 +03:00
|
|
|
install:
|
2017-04-01 10:09:19 +03:00
|
|
|
- go get github.com/Masterminds/glide
|
2019-01-18 21:39:16 +03:00
|
|
|
- wget https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.5.0/.travis/install-protoc.sh && chmod +x install-protoc.sh && ./install-protoc.sh 3.4.0
|
2017-03-16 18:16:45 +03:00
|
|
|
- go get -u github.com/golang/protobuf/protoc-gen-go
|
2018-08-09 11:23:10 +03:00
|
|
|
- go get github.com/securego/gosec/cmd/gosec/...
|
2019-01-20 08:58:14 +03:00
|
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.12.2
|
2016-12-12 21:23:47 +03:00
|
|
|
script:
|
|
|
|
- make install
|
|
|
|
- make test
|
2019-01-20 08:58:14 +03:00
|
|
|
- PATH=$PATH:$(pwd)/bin make lint
|
2016-12-12 21:23:47 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/local
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- "PATH=$PATH:$HOME/local/bin"
|