diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-07-24 14:29:44 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-07-24 14:29:44 -0600 |
| commit | ae8a85fcd429ec5c922db79e078e07662c70a3a9 (patch) | |
| tree | 090ca9ddf71b5116718a7f26f7bdf21bef90c5a9 /Rakefile | |
| parent | f6246571a629dc2ee298a94b445556a0d76d99b1 (diff) | |
fix check for TRAVIS_TAG in build:dependents task
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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' |
