forked from pronix/spree-multi-currency
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
30 lines (24 loc) · 739 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
# Encoding: utf-8
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'spree/testing_support/common_rake'
RSpec::Core::RakeTask.new
task :default => :spec
spec = eval(File.read('spree_multi_currency.gemspec'))
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
end
desc "Release to gemcutter"
task :release do
version = File.read(File.expand_path("../../SPREE_VERSION", __FILE__)).strip
cmd = "cd pkg && gem push spree-multi-currency_-#{version}.gem"; puts cmd; system cmd
end
desc "Generates a dummy app for testing"
task :test_app do
ENV['LIB_NAME'] = 'spree_multi_currency'
Rake::Task['common:test_app'].invoke
end