forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
27 lines (20 loc) · 575 Bytes
/
Rakefile
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
# encoding: utf-8
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
Cucumber::Rake::Task.new(:features)
FileList['tasks/**/*.rake'].each(&method(:import))
task default: [:spec, :features]
desc 'Run all specs on CI'
task ci: [:spec, :features, 'coveralls:push']
desc 'Load gem inside irb console'
task :console do
require 'irb'
require 'irb/completion'
require File.join(__FILE__, '../lib/github_api')
ARGV.clear
IRB.start
end