forked from gravityblast/web-app-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
53 lines (44 loc) · 1.21 KB
/
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
44
45
46
47
48
49
50
51
52
53
require "rubygems"
require "cucumber/rake/task"
require "spec/rake/spectask"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = "--format pretty"
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['test/**/*_spec.rb']
end
task :default => [:spec, :cucumber]
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "web-app-theme"
gemspec.summary = "Web app theme generator"
gemspec.description = "Web app theme generator for rails projects"
gemspec.email = "andrea@gravityblast.com"
gemspec.homepage = "http://github.com/pilu/web-app-theme"
gemspec.authors = ["Andrea Franz"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'aruba/api'
class GemsetsForTesting
include Aruba::Api
def setup
use_rvm "1.8.7"
use_rvm_gemset "web-app-theme-2.3.5", false
install_gems """
gem 'rails', '2.3.5'
gem 'sqlite3-ruby', '1.2.5'
"""
use_rvm "1.8.7"
use_rvm_gemset "web-app-theme-3", false
install_gems """
gem 'rails', '3.0.0.beta3'
gem 'sqlite3-ruby', '1.2.5'
"""
end
end
task :setup_gemsets do
GemsetsForTesting.new.setup
end