Sha256: 7b788c766e1750537b7035fb6603c2dacc05d2e65b50fda1c32cf73d2b486b67

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

module KnapsackPro
  module Config
    module CI
      class Travis < Base
        def node_build_id
          ENV['TRAVIS_BUILD_NUMBER']
        end

        def commit_hash
          ENV['TRAVIS_COMMIT']
        end

        def branch
          ENV['TRAVIS_BRANCH']
        end

        def project_dir
          ENV['TRAVIS_BUILD_DIR']
        end

        def detected
          ENV.key?('TRAVIS') ? self.class : nil
        end

        def fixed_queue_split
          true
        end

        def ci_provider
          "Travis CI"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knapsack_pro-5.4.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.4.0 lib/knapsack_pro/config/ci/travis.rb