# see https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments
language: go

# use the latest ubuntu environment (18.04) available on travis
dist: xenial

go:
  - 1.11.x


install:
  - go get github.com/vishvananda/netlink
  - go get github.com/satori/go.uuid

# Anything in before_script that returns a nonzero exit code will flunk the
# build and immediately stop. It's sorta like having set -e enabled in bash.
# Make sure golangci-lint is vendored.
before_script:
  - go get -u github.com/golangci/golangci-lint/cmd/golangci-lint

go_import_path: github.com/Mellaonx/sriovnet

script:
  - golangci-lint run       # run a bunch of code checkers/linters in parallel
