lib/helpers/ci.rb in overview-0.0.4.14 vs lib/helpers/ci.rb in overview-0.0.4.17
- old
+ new
@@ -1,12 +1,10 @@
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