forked from calabash/run_loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (45 loc) · 1.17 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
require 'bundler'
Bundler::GemHelper.install_tasks
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = 'spec/lib/**{,/*/**}/*_spec.rb'
end
RSpec::Core::RakeTask.new(:unit) do |task|
task.pattern = 'spec/lib/**{,/*/**}/*_spec.rb'
end
RSpec::Core::RakeTask.new(:integration) do |task|
task.pattern = 'spec/integration/**{,/*/**}/*_spec.rb'
end
rescue LoadError => _
end
task :ctags do
sh 'rm -f .git/tags'
excluded = [
'--exclude=*.png',
'--exclude=.screenshots',
'--exclude=*screenshots*',
'--exclude=reports',
'--exclude=*.app',
'--exclude=*.dSYM',
'--exclude=*.ipa',
'--exclude=*.zip',
'--exclude=*.framework',
'--exclude=.irb-history',
'--exclude=.pry-history',
'--exclude=.idea',
'--exclude=*.plist',
'--exclude=.gitignore',
'--exclude=Gemfile.lock',
'--exclude=Gemfile',
'--exclude=docs',
'--exclude=*.md',
'--exclude=*.java',
'--exclude=*.xml',
'--exclude=.pryrc',
'--exclude=.irbrc',
'--exclude=.DS_Store'
]
cmd = "ctags --tag-relative -V -f .git/tags -R #{excluded.join(' ')} --languages=ruby lib/ spec/"
sh cmd
end