Sha256: d6344665a613a1da6dd25e9d8cbba220d8570a48cdb0e4500d4344965f65172b

Contents?: true

Size: 666 Bytes

Versions: 12

Compression:

Stored size: 666 Bytes

Contents

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 detected
          ENV.key?('CIRRUS_CI') ? self.class : nil
        end

        def fixed_queue_split
          false
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knapsack_pro-5.3.5 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.3.4 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.3.3 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.3.2 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.3.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.3.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.2.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.2.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.1.2 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.1.1 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.1.0 lib/knapsack_pro/config/ci/cirrus_ci.rb
knapsack_pro-5.0.0 lib/knapsack_pro/config/ci/cirrus_ci.rb