Sha256: 5743e15a309c074173f4645160f36de8b62036921a2d549398586eeb5c7f93c8

Contents?: true

Size: 784 Bytes

Versions: 5

Compression:

Stored size: 784 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:test)

task :default => :test

def clone_and_test(name)
	path = "external/#{name}"
	FileUtils.rm_rf path
	FileUtils.mkdir_p path
	
	sh("git clone https://git@github.com/socketry/#{name} #{path}")
	
	# I tried using `bundle config --local local.async ../` but it simply doesn't work.
	File.open("#{path}/Gemfile", "a") do |file| 
		file.puts('gem "async", path: "../../"')
	end
	
	sh("cd #{path} && bundle install && bundle exec rake test")
end

task :external do
	Bundler.with_clean_env do
		clone_and_test("async-io")
		clone_and_test("async-websocket")
		clone_and_test("async-dns")
		clone_and_test("async-http")
		clone_and_test("falcon")
	end
end

task :coverage do
	ENV['COVERAGE'] = 'y'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
async-1.12.0 Rakefile
async-1.11.0 Rakefile
async-1.10.3 Rakefile
async-1.10.2 Rakefile
async-1.10.1 Rakefile