Sha256: beebd32d7c621a6f618df9e981c7d65f9d3dbab80c5e3f2334d16f733ad14c74

Contents?: true

Size: 1.01 KB

Versions: 12

Compression:

Stored size: 1.01 KB

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'

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

desc "Run all tests"
task :test => ['test:units', 'test:functional']

namespace :test do

  Rake::TestTask.new(:units) do |t|
    t.libs << "test"
    t.test_files = FileList['test/unit/**/test*.rb']
  end

  Rake::TestTask.new(:functional) do |t|
    t.libs << "test"
    t.test_files = FileList['test/functional/**/test*.rb']
  end

end

Rake::Task["test:functional"].enhance do
  warn "Remember there are still some VMs running, kill them with `vagrant halt` if you are finished using them."
end

desc 'Run RuboCop lint checks'
RuboCop::RakeTask.new(:lint) do |task|
  task.options = ['--lint']
end

task "release:rubygem_push" do
  # Delay loading Chandler until this point, since it requires Ruby >= 2.1,
  # which may not be available in all environments (e.g. Travis).
  # We assume that the person doing `rake release` has Ruby >= 2.1.
  require "chandler/tasks"
  Rake.application.invoke_task("chandler:push")
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sshkit-1.20.0 Rakefile
sshkit-1.19.1 Rakefile
sshkit-1.19.0 Rakefile
sshkit-1.18.2 Rakefile
sshkit-1.18.1 Rakefile
sshkit-1.18.0 Rakefile
sshkit-1.17.0 Rakefile
sshkit-1.16.1 Rakefile
sshkit-1.16.0 Rakefile
sshkit-1.15.1 Rakefile
sshkit-1.15.0 Rakefile
sshkit-1.14.0 Rakefile