Sha256: 618bd98a8a05b93c378d92c6c73fb89a85d3e14949c462ae9de07fc499250041

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

namespace :ci do
  namespace :test do
    task :adventures, [:adventure] do |task, args|
      Rake::Task['ci:prepare'].invoke
      adventure = (args[:adventure] || '0 -1').split(' ')
      adventures = YAML.load_file("#{Dir.pwd}/test/fixtures/matrixes/cases.yml")
      adventures[adventure.first.to_i..adventure.last.to_i].each do |a|
        job = "test-rollon-#{a.join("\\n")}-linux"
        sh("circleci local execute -c process.yml --job \"#{job}\"")
      end
    end

    task :run, [:job] do |task, args|
      Rake::Task['ci:prepare'].invoke
      sh("circleci local execute -c process.yml --job \"#{args[:job]}\"")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roro-0.3.33 rakelib/ci/test/adventures.rake