-
Notifications
You must be signed in to change notification settings - Fork 103
/
Rakefile
37 lines (33 loc) · 983 Bytes
/
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
35
36
37
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require "bundler/gem_tasks"
require "bundler/setup"
Bundler.require
$:.unshift("./lib/")
require './lib/formotion'
require 'guard/motion'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'Formotion'
app.pods do
pod 'JMImageCache'
end
end
namespace :spec do
task :units do
App.config.spec_mode = true
spec_files = App.config.spec_files
functional_files = Dir.glob('./spec/functional/**/*.rb')
spec_files -= functional_files
App.config.instance_variable_set("@spec_files", spec_files)
Rake::Task["simulator"].invoke
end
task :functionals do
App.config.spec_mode = true
spec_files = App.config.spec_files
row_type_files = Dir.glob('./spec/row_type/**/*.rb')
spec_files -= row_type_files
App.config.instance_variable_set("@spec_files", spec_files)
Rake::Task["simulator"].invoke
end
end