forked from soffes/SAMKeychain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
45 lines (40 loc) · 1.37 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
desc 'Run the tests'
task :test do
system 'xcodebuild -project Tests/SSKeychain.xcodeproj -scheme SSKeychainTests TEST_AFTER_BUILD=YES'
system 'xcodebuild -project Tests/SSKeychain.xcodeproj -scheme SSKeychainTestsARC TEST_AFTER_BUILD=YES'
end
task :default => :test
namespace :docs do
header_path = 'SSKeychain/*.h'
appledoc_options = [
'--output Documentation',
'--project-name SSKeychain',
'--project-company \'Sam Soffes\'',
'--company-id com.samsoffes',
"--project-version #{`cat VERSION`.strip}",
'--keep-intermediate-files',
'--create-html',
'--templates ~/Library/Application\ Support/appledoc/Templates/',
'--no-repeat-first-par',
'--verbose']
desc 'Clean docs'
task :clean do
`rm -rf Documentation`
end
desc 'Install docs'
task :install => [:'docs:clean'] do
`appledoc #{appledoc_options.join(' ')} --create-docset --install-docset #{header_path}`
end
desc 'Publish docs'
task :publish => [:'docs:clean'] do
extra_options = [
'--create-docset',
'--publish-docset',
'--install-docset',
'--docset-atom-filename com.samsoffes.sskeychain.atom',
'--docset-feed-url http://docs.samsoff.es/%DOCSETATOMFILENAME',
'--docset-package-url http://docs.samsoff.es/%DOCSETPACKAGEFILENAME'
]
`appledoc #{appledoc_options.join(' ')} #{extra_options.join(' ')} #{header_path}`
end
end