Skip to content

Commit 67c4a28

Browse files
authored
Merge pull request #680 from estroz/md-skip-ci
.travisl.yml: skip CI on change to docs or untestable project files
2 parents ec5387c + 6b193ff commit 67c4a28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ services:
88
go:
99
- 1.10.3
1010

11+
before_install:
12+
- |
13+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.MD)|(\.png)|(\.pdf)|^(doc/)|^(MAINTAINERS)|^(LICENSE)'; then
14+
echo "Only doc files were updated, not running the CI."
15+
exit
16+
fi
17+
1118
jobs:
1219
include:
1320
- before_script: hack/ci/setup-openshift.sh

0 commit comments

Comments
 (0)