19 lines
630 B
YAML
19 lines
630 B
YAML
language: go
|
|
go: 1.11.x
|
|
go_import_path: moul.io/protoc-gen-gotemplate
|
|
install:
|
|
- go get github.com/Masterminds/glide
|
|
- 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
|
|
- go get -u github.com/golang/protobuf/protoc-gen-go
|
|
- go get github.com/securego/gosec/cmd/gosec/...
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.12.2
|
|
script:
|
|
- make install
|
|
- make test
|
|
- PATH=$PATH:$(pwd)/bin make lint
|
|
cache:
|
|
directories:
|
|
- $HOME/local
|
|
env:
|
|
global:
|
|
- "PATH=$PATH:$HOME/local/bin" |