-
Notifications
You must be signed in to change notification settings - Fork 208
/
Rakefile
54 lines (46 loc) · 1.32 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$:.unshift("/Library/RubyMotion/lib")
$:.unshift("~/.rubymotion/rubymotion-templates")
require 'motion/project/template/gem/gem_tasks'
if ENV['osx']
require 'motion/project/template/osx'
else
require 'motion/project/template/ios'
end
Bundler.setup
Bundler.require
require 'bubble-wrap/all'
require 'bubble-wrap/test'
module Motion
module Project
class Config
def spec_files=(spec_files)
@spec_files = spec_files
end
end
end
end
Motion::Project::App.setup do |app|
app.name = 'testSuite'
app.identifier = 'io.bubblewrap.testSuite'
app.specs_dir = './spec/motion'
app.spec_files
if Motion::Project::App.osx?
app.spec_files -= Dir.glob("./spec/motion/**/ios/**.rb")
["font", "motion", "location", "media", "ui", "mail", "sms", "network-indicator"].each do |package|
app.spec_files -= Dir.glob("./spec/motion/#{package}/**/*.rb")
end
else
app.info_plist['NSLocationAlwaysUsageDescription'] = 'Description'
app.info_plist['NSLocationWhenInUseUsageDescription'] = 'Description'
app.spec_files -= Dir.glob("./spec/motion/**/osx/**.rb")
end
app.version = '1.2.3'
app.short_version = '3.2.1'
end
namespace :spec do
task :lib do
sh "bacon #{Dir.glob("spec/lib/**/*_spec.rb").join(' ')}"
end
task :motion => 'spec'
task :all => [:lib, :motion]
end