Skip to content

Commit

Permalink
Test external gems too.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 16, 2018
1 parent 5fad0a9 commit 2417619
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ require "rspec/core/rake_task"

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

task :default => :test
task :default => [:test, :external]

def clone_and_test(name)
sh("git clone https://git@github.com/socketry/#{name}")
sh("cd #{name} && bundle config --local local.async #{Dir.pwd.dump} 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("falcon")
end
end

task :coverage do
ENV['COVERAGE'] = 'y'
Expand Down

0 comments on commit 2417619

Please sign in to comment.