Sha256: 6c60f54a064460d29a0319ae0c0d7ae9c790e0f0d1e95fea00010e8a9c74f502

Contents?: true

Size: 811 Bytes

Versions: 18

Compression:

Stored size: 811 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 rspec")
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")
		clone_and_test("async-rest")
	end
end

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
async-1.24.1 Rakefile
async-1.24.0 Rakefile
async-1.23.0 Rakefile
async-1.22.2 Rakefile
async-1.22.1 Rakefile
async-1.22.0 Rakefile
async-1.21.0 Rakefile
async-1.20.1 Rakefile
async-1.20.0 Rakefile
async-1.19.0 Rakefile
async-1.18.0 Rakefile
async-1.17.1 Rakefile
async-1.17.0 Rakefile
async-1.16.0 Rakefile
async-1.15.5 Rakefile
async-1.15.4 Rakefile
async-1.15.3 Rakefile
async-1.15.2 Rakefile