language: go

go_import_path: github.com/vbatts/git-validation

go:
  - "tip"
  - "1.13.x"

env:

matrix:

sudo: false

install: true

notifications:
  email:
    on_success: change
    on_failure: always

before_script:
  - env

before_install:
  - go get ./...

script:
  - go vet -x ./...
  - go build .
  - go test -v ./...
  - ./git-validation -run DCO,short-subject,dangling-whitespace -v
