Update .travis.yml

This commit is contained in:
Dean Eigenmann 2019-11-05 18:00:01 +01:00 committed by GitHub
parent f59065ffca
commit 7987f60db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,18 @@ install: true
env:
- GO111MODULE=on
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
before_script:
- make install-linter