Sha256: 839d1134fdcc93865ed289d8e3014ec99e5700d418fdd4af2a6fd5f5091a3d58

Contents?: true

Size: 927 Bytes

Versions: 35

Compression:

Stored size: 927 Bytes

Contents

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

RuboCop::RakeTask.new

task :default => ['tests:mock', 'tests:spec', 'tests:unit']

task :mock => 'tests:mock'

task :spec => "tests:spec"

task :unit => 'tests:unit'

namespace :tests do
  desc 'Run fog-openstack tests with Mock class'
  Rake::TestTask.new do |t|
    ENV['FOG_MOCK']= ENV['FOG_MOCK'].nil? ? 'true' : ENV['FOG_MOCK']

    t.name = 'mock'
    t.libs.push [ "lib", "test" ]
    t.test_files = FileList['test/**/*.rb']
    t.verbose = true
  end

  desc 'Run fog-openstack tests with RSpec and VCR'
  Rake::TestTask.new do |t|
    t.name = 'spec'
    t.libs.push [ "lib", "spec" ]
    t.pattern = 'spec/**/*_spec.rb'
    t.verbose = true
  end

  desc 'Run fog-openstack unit tests'
  Rake::TestTask.new do |t|
    t.name = 'unit'
    t.libs.push [ "lib", "unit" ]
    t.pattern = 'unit/**/*_test.rb'
    t.verbose = true
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 Rakefile
fog-openstack-1.1.2 Rakefile
fog-openstack-fork-99 Rakefile
fog-openstack-1.1.0 Rakefile
fog-openstack-1.1.0.pre Rakefile
fog-openstack-apibank-1.0.102 Rakefile
fog-openstack-1.0.11 Rakefile
fog-openstack-apibank-1.0.101 Rakefile
fog-openstack-1.0.10 Rakefile
fog-openstack-1.0.9 Rakefile
fog-openstack-0.3.10 Rakefile
fog-openstack-1.0.8 Rakefile
fog-openstack-1.0.7 Rakefile
fog-openstack-0.3.9 Rakefile
fog-openstack-1.0.6 Rakefile
fog-openstack-1.0.5 Rakefile
fog-openstack-0.3.8 Rakefile
fog-openstack-0.3.7 Rakefile
fog-openstack-1.0.4 Rakefile
fog-openstack-0.3.6 Rakefile