lib/travis/travis.rb
def fail_if_pr_branch_build_failed
    return unless TravisCI.pull_request?

    Log.warning('Checking if previous build for this branch was successful on Travis...')

    Log.fatal('Skipping running command because previous build for branch failed.') unless branch_build_successful?
  end
# If the previous build on current branch failed on Travis, skip this build too.
If the previous build on current branch failed on Travis, skip this build too.
If the previous build on current branch failed on Travis skip this build too .
def fail_if_pr_branch_build_failed
    return unless TravisCI.pull_request?
    Log.warning('Checking if previous build for this branch was successful on Travis...')
    Log.fatal('Skipping running command because previous build for branch failed.') unless branch_build_successful?
  end
def fail_if_pr_branch_build_failed return unless TravisCI . pull_request? Log . warning ( 'Checking if previous build for this branch was successful on Travis...' ) Log . fatal ( 'Skipping running command because previous build for branch failed.' ) unless branch_build_successful? end
If the previous build on current branch failed on Travis, skip this build too.
If the previous build on current branch failed on Travis skip this build too .