Sha256: c61db0ca89a9013f410994adf8beb4015ce03a25a8ccf07bd001a627e0a24ea9
Contents?: true
Size: 726 Bytes
Versions: 5
Compression:
Stored size: 726 Bytes
Contents
module Helpers 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 end
Version data entries
5 entries across 5 versions & 1 rubygems