summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-12 04:19:14 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-12 04:19:14 -0600
commit72ef99c4e186b656ad86edc9de6852c480e50f47 (patch)
treeed76c7db9de8237b0e2c5bf2d29af444944360f0 /Rakefile
parent5e15911ca1ab4dd1663bb45156770ff0c14efe0b (diff)
only trigger dependent builds on first job in matrix
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 7cae4025..624443cb 100644
--- a/Rakefile
+++ b/Rakefile
@@ -131,7 +131,7 @@ 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'
+ next unless ENV['TRAVIS_PULL_REQUEST'].to_s == 'false' && (ENV['TRAVIS_JOB_NUMBER'].to_s.end_with? '.1')
end
next unless (token = ENV['TRAVIS_TOKEN'])
require 'net/http'