set spec_mode and distribution_mode without setup

This commit is contained in:
Clay Allsopp
2013-05-27 15:32:31 -07:00
committed by Watson
parent dbef9c97dc
commit b4dd043ab3
2 changed files with 5 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ namespace :archive do
desc "Create an .ipa archive for distribution (AppStore)"
task :distribution do
App.config_without_setup.build_mode = :release
App.config.distribution_mode = true
App.config_without_setup.distribution_mode = true
Rake::Task["archive"].invoke
end
end
@@ -132,13 +132,13 @@ task :spec => ['spec:simulator']
namespace :spec do
desc "Run the test/spec suite on the simulator"
task :simulator do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
Rake::Task["simulator"].invoke
end
desc "Run the test/spec suite on the device"
task :device do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
ENV['debug'] ||= '1'
Rake::Task["device"].invoke
end

View File

@@ -68,7 +68,7 @@ end
desc "Run the test/spec suite"
task :spec do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
Rake::Task["run"].invoke
end
@@ -81,7 +81,7 @@ end
namespace :archive do
desc "Create a .pkg archive for distribution (AppStore)"
task :distribution do
App.config.distribution_mode = true
App.config_without_setup.distribution_mode = true
Rake::Task['archive'].invoke
end
end