forked from tuist/XcodeProj
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (25 loc) · 723 Bytes
/
Rakefile
File metadata and controls
33 lines (25 loc) · 723 Bytes
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
#!/usr/bin/rake
require 'fileutils'
require 'colorize'
task :style_correct do
system("swiftformat .")
system("swiftlint autocorrect")
end
task :release_check do
puts "Running tests".colorize(:cyan)
system("swift test")
puts "Building for release".colorize(:cyan)
system("swift build -c release")
puts "Compiling Carthage project".colorize(:cyan)
system("xcodebuild -project Xcodeproj_Carthage.xcodeproj -scheme XcodeProj")
end
task :archive_carthage do
system("carthage build --no-skip-current --platform macOS")
system("carthage archive xcodeproj")
end
task :carthage_update_dependencies do
system("carthage update --platform macOS")
end
def system(*args)
Kernel.system(*args) || abort
end