# Use the (faster) container-based infrastructure, see also
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: true
dist: trusty

language: go
go:
  - "1.13"

script:
  # Check whether files are syntactically correct.
  - "gofmt -l $(find . -name '*.go' | tr '\\n' ' ') >/dev/null"
  # Check whether files were not gofmt'ed.
  - "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
  - go tool vet .
  - go test ./...
  - go test -c github.com/google/nftables
  - sudo ./nftables.test -test.v -run_system_tests

# Use the (faster) container-based infrastructure, see also
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: true
dist: trusty

language: go
go:
  - "1.13"

script:
  # Check whether files are syntactically correct.
  - "gofmt -l $(find . -name '*.go' | tr '\\n' ' ') >/dev/null"
  # Check whether files were not gofmt'ed.
  - "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
  - go vet .
  - go test ./...
  - go test -c github.com/google/nftables
  - sudo ./nftables.test -test.v -run_system_tests

Update go vet command line
Update go vet command line

Signed-off-by: Serguei Bezverkhi <c33ca6227aebfb54a1e138877913c69b58e15edc@cisco.com>
