mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
[test] Make tests work if no explicit deployment_target is set.
This commit is contained in:
@@ -12,7 +12,12 @@ Motion::Project::App.setup do |app|
|
||||
app.vendor_project('vendor/code', :static)
|
||||
|
||||
app.spec_files.insert(1, *FileList['../../lib/motion/util/version.rb', '../helpers/*.rb'])
|
||||
app.deployment_target = ENV['deployment_target'] if ENV['deployment_target']
|
||||
|
||||
if ENV['deployment_target']
|
||||
app.deployment_target = ENV['deployment_target']
|
||||
else
|
||||
ENV['deployment_target'] = app.deployment_target
|
||||
end
|
||||
|
||||
app.archs[app.local_platform] = [ENV['ARCH']] if ENV['ARCH']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user