You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Guardfile 1.8 kB

12 years ago
​
​
​
​
​
​
12 years ago
​
​
​
12 years ago
​
​
12 years ago
​
​
​
12 years ago
​
12 years ago
​
​
​
12 years ago
12 years ago
​
​
​
​
​
12 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # More info at https://github.com/guard/guard#readme
  2. # guard 'rails' do
  3. # watch('Gemfile.lock')
  4. # watch(%r{^(config|lib)/.*})
  5. # end
  6. #
  7. guard 'spork', :test_unit => true, :test_unit_env => {'RAILS_ENV' => 'test'}, :wait => 60 do
  8. watch(%r{app/models/.+\.rb})
  9. watch('config/application.rb')
  10. watch('config/environment.rb')
  11. watch('config/environments/test.rb')
  12. watch(%r{^config/initializers/.+\.rb$})
  13. watch('Gemfile.lock')
  14. watch('spec/spec_helper.rb') { :rspec }
  15. watch('test/test_helper.rb') { :test_unit }
  16. watch(%r{features/support/}) { :cucumber }
  17. end
  18. guard :test, :drb => true, :all_after_pass => false, :all_on_start => false do
  19. watch(%r{^test/.+_test\.rb$})
  20. watch('test/test_helper.rb') { 'test' }
  21. # Non-rails
  22. watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
  23. # Rails 4
  24. # watch(%r{^app/(.+)\.rb}) { |m| "test/#{m[1]}_test.rb" }
  25. # watch(%r{^app/controllers/application_controller\.rb}) { 'test/controllers' }
  26. # watch(%r{^app/controllers/(.+)_controller\.rb}) { |m| "test/integration/#{m[1]}_test.rb" }
  27. # watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
  28. # watch(%r{^lib/(.+)\.rb}) { |m| "test/lib/#{m[1]}_test.rb" }
  29. # Rails < 4
  30. watch(%r{^app/models/(.+)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
  31. watch(%r{^app/controllers/(.+)\.rb$}) { |m| "test/functional/#{m[1]}_test.rb" }
  32. watch(%r{^app/views/(.+)/.+\.erb$}) { |m| "test/functional/#{m[1]}_controller_test.rb" }
  33. watch(%r{^app/views/.+$}) { 'test/integration' }
  34. watch('app/controllers/application_controller.rb') { ['test/functional', 'test/integration'] }
  35. end

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...