forked from jamonholmgren/ProMotion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
34 lines (31 loc) · 1.2 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'bundler'
Bundler.setup
Bundler.require(:development)
require 'ProMotion'
require 'motion_print'
Motion::Project::App.setup do |app|
app.name = 'ProMotion'
app.device_family = [ :ipad ] # so we can test split screen capability
app.detect_dependencies = false
app.info_plist["UIViewControllerBasedStatusBarAppearance"] = false
app.deployment_target = "7.1"
# Adding file dependencies for tests
# Not too many dependencies necessary
app.files_dependencies({
"app/screens/table_screen_refreshable.rb" => [ "app/screens/test_table_screen.rb" ],
"app/screens/table_screen_longpressable.rb" => [ "app/screens/test_table_screen.rb" ],
"app/screens/test_collection_screen.rb" => [ "app/test_views/custom_collection_view_cell.rb" ],
"app/screens/test_collection2_screen.rb" => [ "app/test_views/custom_collection_view_cell.rb" ],
})
end
namespace :spec do
task :unit do
App.config.spec_mode = true
spec_files = App.config.spec_files - Dir.glob('./spec/functional/**/*.rb')
App.config.instance_variable_set("@spec_files", spec_files)
Rake::Task["simulator"].invoke
end
end