Sha256: d7f86058a9740f27103d94e46e3e64b14d6963fb91efd779350f91ab1929605d

Contents?: true

Size: 777 Bytes

Versions: 2

Compression:

Stored size: 777 Bytes

Contents

# https://www.appveyor.com/docs/environment-variables/
module KnapsackPro
  module Config
    module CI
      class AppVeyor < Base
        def node_total
          # not provided
        end

        def node_index
          # not provided
        end

        def node_build_id
          ENV['APPVEYOR_BUILD_ID']
        end

        def commit_hash
          ENV['APPVEYOR_REPO_COMMIT']
        end

        def branch
          ENV['APPVEYOR_REPO_BRANCH']
        end

        def project_dir
          ENV['APPVEYOR_BUILD_FOLDER']
        end

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

        def fixed_queue_split
          false
        end

        def ci_provider
          "AppVeyor"
        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/app_veyor.rb
knapsack_pro-5.4.0 lib/knapsack_pro/config/ci/app_veyor.rb