Sha256: db9287b544df4f8dc884e2a3a7d2afea878518c734b209a59a8b3e9b8f9d3f91

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

module Overview

  class CI
    DEFAULT_BUILD_NO = '1'

    def self.tagged_build?
      !ENV['TRAVIS_TAG'].nil?
    end

    def self.build_no
      ENV["TRAVIS_BUILD_NUMBER"] || ENV["CIRCLE_BUILD_NUM"] || DEFAULT_BUILD_NO
    end

    def self.branch
      ENV['TRAVIS_REPO_SLUG'] || ENV['CIRCLE_PROJECT_REPONAME']
    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

2 entries across 2 versions & 1 rubygems

Version Path
overview-0.0.2.43 lib/appversion/ci.rb
overview-0.0.2.1.40 lib/appversion/ci.rb