Sha256: 5add4f3221ea7b083afa1085710cdae01ee79b3301cb2638cc678c9c3edfa9fb

Contents?: true

Size: 816 Bytes

Versions: 23

Compression:

Stored size: 816 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  module Config
    module CI
      class CirrusCI < Base
        def node_total
          ENV['CI_NODE_TOTAL']
        end

        def node_index
          ENV['CI_NODE_INDEX']
        end

        def node_build_id
          ENV['CIRRUS_BUILD_ID']
        end

        def commit_hash
          ENV['CIRRUS_CHANGE_IN_REPO']
        end

        def branch
          ENV['CIRRUS_BRANCH']
        end

        def project_dir
          ENV['CIRRUS_WORKING_DIR']
        end

        def user_seat
          # not provided
        end

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

        def fixed_queue_split
          false
        end

        def ci_provider
          "Cirrus CI"
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/cirrus_ci.rb