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-7.13.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.13.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/travis.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/travis.rb