File: Rakefile

package info (click to toggle)
ruby-fog-profitbricks 0.0.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 532 kB
  • sloc: ruby: 3,489; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require "bundler/gem_tasks"
require "rake/testtask"

task :default => :test
task :travis => ["test", "test:travis"]

Rake::TestTask.new do |t|
  t.libs.push %w(spec)
  t.test_files = FileList["spec/**/*_spec.rb"]
  t.verbose = true
end

namespace :test do
  mock = ENV["FOG_MOCK"] || "true"
  task :travis do
    sh("export FOG_MOCK=#{mock} && bundle exec shindont")
  end
end

desc "Default Task"
task :default => [ :test ]