File: Rakefile

package info (click to toggle)
ruby-fog-core 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 676 kB
  • sloc: ruby: 4,719; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'bundler/gem_tasks'

task :default => [:test]

require "rake/testtask"

Rake::TestTask.new do |t|
  t.libs << "lib"
  t.libs << "spec"
  t.pattern = "spec/**/*_spec.rb"
end

task :travis do
  mock = 'true' || ENV['FOG_MOCK']
  sh("export FOG_MOCK=#{mock} && rake")

  if ENV['COVERAGE']
    require 'coveralls/rake/task'

    Coveralls::RakeTask.new
    Rake::Task["coveralls:push"].invoke
  end
end