Sha256: 9a3236a6b5864db1bf086623724ce40742e05bcfa56db3afdbdddc2efbd51ab3

Contents?: true

Size: 498 Bytes

Versions: 61

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true
require 'ci/queue/static'

module CI
  module Queue
    class Grind < Static
      class << self
        def from_uri(uri, config)
          new(uri.path, config)
        end
      end

      def initialize(path, config)
        io = path == '-' ? STDIN : ::File.open(path)

        tests_to_run = io.each_line.map(&:strip).reject(&:empty?)
        test_grinds = (tests_to_run * config.grind_count).sort

        super(test_grinds, config)
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ci-queue-0.62.0 lib/ci/queue/grind.rb
ci-queue-0.61.0 lib/ci/queue/grind.rb
ci-queue-0.60.0 lib/ci/queue/grind.rb
ci-queue-0.59.0 lib/ci/queue/grind.rb
ci-queue-0.58.0 lib/ci/queue/grind.rb
ci-queue-0.57.0 lib/ci/queue/grind.rb
ci-queue-0.56.0 lib/ci/queue/grind.rb
ci-queue-0.55.0 lib/ci/queue/grind.rb
ci-queue-0.52.0 lib/ci/queue/grind.rb
ci-queue-0.51.0 lib/ci/queue/grind.rb
ci-queue-0.50.0 lib/ci/queue/grind.rb
ci-queue-0.49.0 lib/ci/queue/grind.rb
ci-queue-0.48.0 lib/ci/queue/grind.rb
ci-queue-0.47.0 lib/ci/queue/grind.rb
ci-queue-0.46.0 lib/ci/queue/grind.rb
ci-queue-0.45.0 lib/ci/queue/grind.rb
ci-queue-0.44.0 lib/ci/queue/grind.rb
ci-queue-0.43.0 lib/ci/queue/grind.rb
ci-queue-0.42.0 lib/ci/queue/grind.rb
ci-queue-0.41.0 lib/ci/queue/grind.rb