File: Rakefile

package info (click to toggle)
ruby-sidekiq-cron 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 476 kB
  • sloc: ruby: 1,822; sh: 8; makefile: 3
file content (63 lines) | stat: -rw-r--r-- 1,609 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# encoding: utf-8

require 'rubygems'
require 'bundler/setup'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
  gem.name = "sidekiq-cron"
  gem.homepage = "http://github.com/ondrejbartas/sidekiq-cron"
  gem.license = "MIT"
  gem.summary = %Q{Sidekiq Cron helps to add repeated scheduled jobs}
  gem.description = %Q{Enables to set jobs to be run in specified time (using CRON notation)}
  gem.email = "ondrej@bartas.cz"
  gem.authors = ["Ondrej Bartas"]
  # dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

#TESTING

task :doc do
  system 'sdoc -N .'
end

require 'rake/testtask'
task :default => :test

Rake::TestTask.new(:test) do |t|
  t.test_files = FileList['test/functional/**/*_test.rb', 'test/unit/**/*_test.rb','test/integration/**/*_test.rb']
  t.warning = false
  t.verbose = false
end

namespace :test do
  Rake::TestTask.new(:unit) do |t|
    t.test_files = FileList['test/unit/**/*_test.rb']
    t.warning = false
    t.verbose = false
  end

  Rake::TestTask.new(:functional) do |t|
    t.test_files = FileList['test/functional/**/*_test.rb']
    t.warning = false
    t.verbose = false
  end

  Rake::TestTask.new(:integration) do |t|
    t.test_files = FileList['test/integration/**/*_test.rb']
    t.warning = false
    t.verbose = false
  end
end