Sha256: 613aa7014b790269a961263c7938d90a6a247806ec106e65eb7f960bd9c96bd0

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

module Overview

  class CI
    DEFAULT_BUILD_NO = '1'

    def self.tagged_build?
      p "TRAVIS_TAG=#{ENV['TRAVIS_TAG']}"
      (ENV['TRAVIS_TAG'] || '').length > 0
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
overview-0.0.3.49 lib/appversion/ci.rb