Sha256: 08aea6b4490dd8649680b82b7fb1d992ee3ffd8072c9c0dea075e18fe65f1812
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
class CI DEFAULT_BUILD_NO = '1' def self.tagged_build?(travis_tag='') travis_tag = !travis_tag.empty? ? travis_tag : ENV['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.5.pre.22 | lib/helpers/ci.rb |
overview-0.0.4.17 | lib/helpers/ci.rb |