File: Rakefile

package info (click to toggle)
ruby-fog-core 1.45.0-2~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 632 kB
  • sloc: ruby: 4,741; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (4)
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/setup'

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