forked from clayallsopp/formotion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (29 loc) · 911 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
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require "bundler/gem_tasks"
require "bundler/setup"
$:.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'
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