forked from pact-foundation/pact_broker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (18 loc) · 629 Bytes
/
Rakefile
File metadata and controls
23 lines (18 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# encoding: utf-8
require "bundler/gem_tasks"
require "rubygems"
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
FileList["lib/tasks/**/*.rake"].each { |task| load "#{Dir.pwd}/#{task}" }
FileList["tasks/**/*.rake"].each { |task| load "#{Dir.pwd}/#{task}" }
task :default => ["db:prepare:test", :boot, :spec, "pact:verify", "bundle:audit"]
task :ci => ["db:prepare:test", :boot, :spec]
task :boot do
require File.join(File.dirname(__FILE__), "config/boot")
end