forked from openconfig/ygot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 880 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: go
go:
- 1.11.x
- 1.12.x
- 1.13.x
- master
before_install:
- ./scripts/install_protobuf.sh
- export PATH=$PATH:$HOME/protobuf/bin:$GOPATH/bin
install:
- go get -u golang.org/x/tools/cmd/goimports
- go get -u github.com/golang/protobuf/protoc-gen-go
- make install
script:
- go test ./...
- go test -race ./...
- go vet ./util
- go vet -composites=false ./ygot
- go vet ./ygen
- go vet ./ytypes
- go vet ./ygot/pathtranslate
- diff -u <(echo -n) <(gofmt -d -s ./util)
- diff -u <(echo -n) <(gofmt -d -s ./ygot)
- diff -u <(echo -n) <(gofmt -d -s ./ygen)
- diff -u <(echo -n) <(gofmt -d -s ./ytypes)
- diff -u <(echo -n) <(gofmt -d -s ./ygot/pathtranslate)
after_success:
- ./scripts/coverage.sh