Skip to content

Commit

Permalink
update travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
firemiles committed Jan 31, 2020
1 parent 915b21b commit bb599e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: go
dist: xenial

go:
- 1.13.x

services:
- docker
before_install:

install:
- export GO111MODULE=on
- go mod download
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/containernetworking/plugins/plugins/ipam/host-local

script:
- go test -v -covermode=count -coverprofile=coverage.out ./... || echo go test failed
- sudo -E env "PATH=$PATH" go test -v -covermode=count -coverprofile=coverage.out ./... || echo go test failed
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- make
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.13

require (
github.com/containernetworking/cni v0.7.1
github.com/containernetworking/plugins v0.8.4
github.com/containernetworking/plugins v0.8.5
github.com/go-logr/logr v0.1.0
github.com/golang/protobuf v1.3.2
github.com/j-keck/arping v1.0.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ github.com/containernetworking/cni v0.7.1 h1:fE3r16wpSEyaqY4Z4oFrLMmIGfBYIKpPrHK
github.com/containernetworking/cni v0.7.1/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY=
github.com/containernetworking/plugins v0.8.4 h1:rOtM8umH7EGqtkFwP9RtmY/Q+PoZ7MRM2mAltEHoIHE=
github.com/containernetworking/plugins v0.8.4/go.mod h1:UZ2539umj8djuRQmBxuazHeJbYrLV8BSBejkk+she6o=
github.com/containernetworking/plugins v0.8.5 h1:pCvEMrFf7yzJI8+/D/7jkvE96KD52b7/Eu+jpahihy8=
github.com/containernetworking/plugins v0.8.5/go.mod h1:UZ2539umj8djuRQmBxuazHeJbYrLV8BSBejkk+she6o=
github.com/coreos/bbolt v1.3.1-coreos.6/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
github.com/coreos/etcd v3.3.15+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
Expand Down

0 comments on commit bb599e9

Please sign in to comment.