Sha256: 8ebded4b88f32b98f0a3e0614981a3ca872981b9307394cd554cf758dae23d84
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
class CI DEFAULT_BUILD_NO = '1' def self.tagged_build?(travis_tag='') p "TRAVIS_TAG=#{ENV['TRAVIS_TAG']}" travis_tag = !travis_tag.empty? ? travis_tag : ENV['TRAVIS_TAG'] || '' p "travis_tag=#{travis_tag}." !travis_tag.empty? && !(travis_tag == 'EMPTY') #magic default value used by legacy build scripts end def self.build_no ENV["TRAVIS_BUILD_NUMBER"] || ENV["CIRCLE_BUILD_NUM"] || DEFAULT_BUILD_NO end def self.branch ENV['TRAVIS_BRANCH'] || ENV['CIRCLE_BRANCH'] end def self.repo ENV['TRAVIS_REPO_SLUG'] || ENV['CIRCLE_PROJECT_REPONAME'] end def self.version_suffix ENV['VERSION_SUFFIX'] || '' end def self.commit ENV['TRAVIS_COMMIT'] || ENV['CIRCLE_SHA1'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overview-0.0.4.14 | lib/helpers/ci.rb |
overview-0.0.4.12 | lib/helpers/ci.rb |