set spec_mode and distribution_mode without setup

This commit is contained in:
Clay Allsopp
2013-05-27 15:32:31 -07:00
parent 51033fa22f
commit f888cffbcd
2 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,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
@@ -113,13 +113,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

@@ -61,7 +61,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
@@ -74,7 +74,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