language: go
go:
  - 1.8
  - tip
  - master

env:
  global:
    - BUILDTAGS="selinux linux"

before_install:
  - go get -u github.com/golang/lint/golint
  - go get -u github.com/vbatts/git-validation

script:
  - git-validation -run DCO,short-subject -v -range ${TRAVIS_COMMIT_RANGE}
  - make BUILDTAGS="${BUILDTAGS}" lint test
