From 7987f60db646cf92404c838fb1a0c4da9629b6c3 Mon Sep 17 00:00:00 2001 From: Dean Eigenmann Date: Tue, 5 Nov 2019 18:00:01 +0100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 81be91c..16bd206 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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