Sha256: c03109d97312d30f7253a48117ec034c011e0e98671bd8b2dee8608c4ce87987
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
module Overview class CI DEFAULT_BUILD_NO = '1' def self.tagged_build? !(ENV['TRAVIS_TAG'] || '').empty? 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 end end p Overview::CI.tagged_build?
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
overview-0.0.3.47 | lib/appversion/ci.rb |