Create .travis.yml

This commit is contained in:
Dean Eigenmann 2020-02-28 13:34:33 +01:00 committed by GitHub
parent 5ec64ddc24
commit 6ad889900c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 0 deletions

38
.travis.yml Normal file
View File

@ -0,0 +1,38 @@
notifications:
email: false
language: go
install: true
branches:
only:
- master
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.html)|^(LICENSE)|^(docs)'
then
echo "Only docs were updated, not running the CI."
exit 0
fi
env:
- GO111MODULE=on
before_script:
- make install-linter
matrix:
include:
- go: "1.11.x"
env: GOFLAGS=-mod=vendor
script:
- make lint
# fails without -a
- go test -a ./... # make test
- go: "1.12.x"
env: GOFLAGS=-mod=vendor
script:
- make lint
# fails without -a
- go test -a ./... # make test