Sha256: aaf89575cee3e7c821c089ff7e43676bc32e98b4a9955f808d0d1443497f002e

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 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_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.45 lib/appversion/ci.rb