aboutsummaryrefslogtreecommitdiff
path: root/test/tools/vendor/github.com/vbatts/git-validation/.travis.yml
blob: 27cd83c4756e529a4bad1c675758e85ba7eaf21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: go

go_import_path: github.com/vbatts/git-validation

go:
  - "tip"
  - "1.x"
  - "1.11.x"
  - "1.10.x"
  - "1.9.x"

env:

matrix:

sudo: false

install: true

notifications:
  email:
    on_success: change
    on_failure: always

before_script:
  - env

before_install:
  - go get ./...
  - if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi

script:
  - if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
  - go vet -x ./...
  - go build .
  - go test -v ./...
  - ./git-validation -run DCO,short-subject,dangling-whitespace -v