summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 6b24010a..8b72c608 100644
--- a/Rakefile
+++ b/Rakefile
@@ -131,8 +131,9 @@ namespace :build do
desc 'Trigger builds for all dependent projects on Travis CI'
task :dependents do
if ENV['TRAVIS'].to_s == 'true'
- 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')
+ next unless ENV['TRAVIS_PULL_REQUEST'].to_s == 'false' &&
+ ENV['TRAVIS_TAG'].to_s.empty? &&
+ (ENV['TRAVIS_JOB_NUMBER'].to_s.end_with? '.1')
end
next unless (token = ENV['TRAVIS_TOKEN'])
require 'net/http'