forked from sass/sassc-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (31 loc) · 771 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
require "bundler/gem_tasks"
task :test do
$LOAD_PATH.unshift('lib', 'test')
Dir.glob('./test/**/*_test.rb') { |f| require f }
end
task :default => [:test]
namespace :tests do
gemfiles = %w[
sprockets-rails_3_0
sprockets-rails_2_3
sprockets_2_12
sprockets_3_0
rails_4_2
rails_4_1
rails_4_0
with_sass_rails
]
gemfiles.each do |gemfile|
desc "Run tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake test"
end
end
desc "Run tests against all common asset pipeline setups"
task :all do
gemfiles.each do |gemfile|
Rake::Task["tests:#{gemfile}"].invoke
end
end
end