Skip to content

Commit

Permalink
Only rebuild the spec/internal app if the generated app might change
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 23, 2015
1 parent 0fdd53c commit 170fbc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ gemspec path: File.expand_path('..', __FILE__)
gem 'simplecov', '~> 0.7.1', require: false
gem 'coveralls', require: false

gem 'engine_cart', '~> 0.4'

group :test do
gem "blacklight-marc", "~> 5.0", github: "projectblacklight/blacklight_marc"
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
Expand Down
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ Bundler::GemHelper.install_tasks

load "tasks/blacklight.rake"

task :default => [:ci]
task :clean => ['blacklight:clean']
task :default => [:ci]
2 changes: 1 addition & 1 deletion blacklight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec-collection_matchers", ">= 1.0"
s.add_development_dependency "capybara"
s.add_development_dependency "poltergeist"
s.add_development_dependency 'engine_cart', ">= 0.1.0"
s.add_development_dependency 'engine_cart', ">= 0.5.2"
s.add_development_dependency "equivalent-xml"
end
8 changes: 5 additions & 3 deletions tasks/blacklight.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
end

EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc

desc "Run test suite"
task :ci => 'blacklight:clean' do
task :ci => ['blacklight:generate', 'blacklight:clean'] do
jetty_params = Jettywrapper.load_config('test')
error = Jettywrapper.wrap(jetty_params) do
Rake::Task["blacklight:fixtures"].invoke
Expand All @@ -33,8 +35,8 @@ namespace :blacklight do
Rake::Task["spec"].invoke
end

desc "Clean out the test rails app"
task :clean => ['engine_cart:clean', 'jetty:clean'] do
desc "Clean out the test jetty"
task :clean => ['jetty:clean'] do
end

desc "Create the test rails app"
Expand Down

0 comments on commit 170fbc5

Please sign in to comment.