skip documentation changes
@@ -6,6 +6,13 @@ 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/
