Sha256: 0c6f8e8ddaa76db82a3ed3f4f8475e2d00cc26ecfbe15cceaf6392bd2f5714c0

Contents?: true

Size: 1.35 KB

Versions: 85

Compression:

Stored size: 1.35 KB

Contents

require "bundler/gem_tasks"

desc "Run unit tests"
task :test    => 'test:unit'

# ----- Test tasks ------------------------------------------------------------

require 'rake/testtask'
namespace :test do
  task :ci_reporter do
    ENV['CI_REPORTS'] ||= 'tmp/reports'
    if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
      require 'ci/reporter/rake/test_unit'
      Rake::Task['ci:setup:testunit'].invoke
    else
      require 'ci/reporter/rake/minitest'
      Rake::Task['ci:setup:minitest'].invoke
    end
  end

  Rake::TestTask.new(:unit) do |test|
    Rake::Task['test:ci_reporter'].invoke if ENV['CI']
    test.libs << 'lib' << 'test'
    test.test_files = FileList["test/unit/**/*_test.rb"]
    # test.verbose = true
    # test.warning = true
  end

  Rake::TestTask.new(:integration) do |test|
    Rake::Task['test:ci_reporter'].invoke if ENV['CI']
    test.libs << 'lib' << 'test'
    test.test_files = FileList["test/integration/**/*_test.rb"]
  end

  Rake::TestTask.new(:all) do |test|
    Rake::Task['test:ci_reporter'].invoke if ENV['CI']
    test.libs << 'lib' << 'test'
    test.test_files = FileList["test/unit/**/*_test.rb", "test/integration/**/*_test.rb"]
  end

end

# ----- Documentation tasks ---------------------------------------------------

require 'yard'
YARD::Rake::YardocTask.new(:doc) do |t|
  t.options = %w| --embed-mixins --markup=markdown |
end

Version data entries

85 entries across 85 versions & 7 rubygems

Version Path
elasticsearch-1.0.11 Rakefile
elasticsearch-1.0.10 Rakefile
elasticsearch-1.0.9 Rakefile
elasticsearch-1.0.8 Rakefile
elasticsearch-1.0.7 Rakefile
elasticsearch-1.0.6 Rakefile
elasticsearch-1.0.5 Rakefile
elasticsearch-1.0.4 Rakefile
elasticsearch-1.0.3 Rakefile
elasticsearch-1.0.2 Rakefile
elasticsearch-1.0.1 Rakefile
elasticsearch-1.0.0 Rakefile
elasticsearch-0.4.11 Rakefile
elasticsearch-0.4.10 Rakefile
elasticsearch-0.4.9 Rakefile
elasticsearch-1.0.0.rc2 Rakefile
elasticsearch-1.0.0.rc1 Rakefile
elasticsearch-0.4.8 Rakefile
elasticsearch-0.4.7 Rakefile
elasticsearch-0.4.6 Rakefile