summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-24 14:25:39 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-24 14:25:39 -0600
commitf6246571a629dc2ee298a94b445556a0d76d99b1 (patch)
tree0fba29662cadaa38a95b587f09a4c5122f07ad70 /Rakefile
parent0056f660af7117fb5d5c7be323121248a686cd96 (diff)
reverse logic when checking whether to skip dependent builds
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index dcc4c0ad..6b24010a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -131,9 +131,8 @@ namespace :build do
desc 'Trigger builds for all dependent projects on Travis CI'
task :dependents do
if ENV['TRAVIS'].to_s == 'true'
- next unless ENV['TRAVIS_PULL_REQUEST'].to_s == 'false' &&
- !ENV['TRAVIS_TAG'] &&
- (ENV['TRAVIS_JOB_NUMBER'].to_s.end_with? '.1')
+ p ENV['TRAVIS_TAG']
+ next if ENV['TRAVIS_PULL_REQUEST'].to_s == 'true' || ENV['TRAVIS_TAG'] || !(ENV['TRAVIS_JOB_NUMBER'].to_s.end_with? '.1')
end
next unless (token = ENV['TRAVIS_TOKEN'])
require 'net/http'