forked from cloudfoundry-attic/vcap-services-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
44 lines (36 loc) · 966 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'rake'
require 'bundler'
Bundler.require(:default, :test)
require 'rspec/core/rake_task'
require 'ci/reporter/rake/rspec'
RSpec::Core::RakeTask.new do |t| # define 'spec' task
t.pattern = "spec/unit_test/*_spec.rb"
end
task "default" => "spec"
namespace "bundler" do
gem_helper = Bundler::GemHelper.new(Dir.pwd)
desc "Build gem package"
task "build" do
gem_helper.build_gem
end
desc "Install gems"
task "install" do
sh("bundle install")
gem_helper.install_gem
end
desc "Install gems for test"
task "install:test" do
sh("bundle install --without development production")
gem_helper.install_gem
end
desc "Install gems for production"
task "install:production" do
sh("bundle install --without development test")
gem_helper.install_gem
end
desc "Install gems for development"
task "install:development" do
sh("bundle install --without test production")
gem_helper.install_gem
end
end