From d8ad99fdf187bd10e9a943b8e91ae14f542510c7 Mon Sep 17 00:00:00 2001 From: shivkumar dudhani Date: Wed, 2 Oct 2019 15:27:40 -0700 Subject: [PATCH] skip documentation changes --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8084608302..de380639ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,14 @@ go: branches: only: - master - +before_install: + - | + if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|^(LICENSE)' + then + echo "Not running CI since only docs were changed." + exit + fi + # Skip the install step. Don't `go get` dependencies. Only build with the code # in vendor/ install: true