Skip to content

Commit 5ea279d

Browse files
committed
[travis][rakefile] only trigger build in SDK repos if not PRs.
1 parent 0883ba4 commit 5ea279d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ namespace :ci do
9393
desc 'Trigger remote CI'
9494
task :trigger, :repo do |_, args|
9595
abort 'Task only applies to travis builds.' if !ENV['TRAVIS'] || !ENV['TRAVIS_API_TOKEN']
96+
abort 'Task skipped for Pull Requests.' if !ENV['TRAVIS_PULL_REQUEST'].nil? && ENV['TRAVIS_PULL_REQUEST'].downcase != 'false'
9697
repo = "DataDog%2F#{args[:repo]}"
9798
url = "https://api.travis-ci.org/repo/#{repo}/requests"
9899
body = { 'request' => { 'branch' => 'master' } }.to_json

0 commit comments

Comments
 (0)