summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 3bcf8167a2..236b87bced 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,9 +11,11 @@
# https://github.com/ruby/ruby/wiki/CI-Servers#travis-ci
# We enable Travis on the specific branches or forked repositories here.
+# https://docs.travis-ci.com/user/conditions-v1
if: >-
- (repo != ruby/ruby OR branch = master OR branch =~ /^ruby_\d_\d$/)
- AND (commit_message !~ /\[DOC\]/)
+ (fork OR branch = master OR branch =~ /^ruby_\d_\d$/)
+ AND (commit_message !~ /(\[DOC\]|Document)/)
+ AND NOT (type = 'push' AND sender =~ /\[bot\]/)
language: c