Sha256: 7b9d2269d88b07d2c6b95105ae2a883b3c9d0699ccb4156c736e65b1729fc60e
Contents?: true
Size: 834 Bytes
Versions: 5
Compression:
Stored size: 834 Bytes
Contents
# http://docs.travis-ci.com/user/osx-ci-environment/ # http://docs.travis-ci.com/user/environment-variables/ module Danger module CISource class Travis < CI def self.validates?(env) return false unless env["HAS_JOSH_K_SEAL_OF_APPROVAL"] return false unless env["TRAVIS_REPO_SLUG"] return false unless env["TRAVIS_PULL_REQUEST"] return true end def supported_request_sources @supported_request_sources ||= [Danger::RequestSources::GitHub] end def initialize(env) self.repo_slug = env["TRAVIS_REPO_SLUG"] if env["TRAVIS_PULL_REQUEST"].to_i > 0 self.pull_request_id = env["TRAVIS_PULL_REQUEST"] end self.repo_url = GitRepo.new.origins # Travis doesn't provide a repo url env variable :/ end end end end
Version data entries
5 entries across 5 versions & 1 rubygems