Sha256: 22b467eed302877c37400989e03bc8671acbfd626136aa358a59a08d2977d224

Contents?: true

Size: 670 Bytes

Versions: 24

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

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 user_seat
          # not provided
        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

24 entries across 24 versions & 1 rubygems

Version Path
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-6.0.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.7.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-5.6.0 lib/knapsack_pro/config/ci/travis.rb