forked from leonbreedt/FavIcon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (18 loc) · 700 Bytes
/
Rakefile
File metadata and controls
23 lines (18 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def run(command)
system(command) or raise "command failed: #{command}"
end
version = `git describe --tags`
task :doc do
run "jazzy --swift-version 3.0 -o ../FavIcon-GHPages/ -a 'Leon Breedt' -u 'https://twitter.com/bitserf' -m 'FavIcon' -g 'https://github.com/bitserf/FavIcon' --module-version #{version}"
end
namespace "test" do
desc "Run iOS unit tests"
task :ios do |t|
run "xcodebuild -project FavIcon.xcodeproj -scheme FavIcon-iOS -destination 'platform=iOS Simulator,name=iPhone 6s' clean test"
end
desc "Run OS X unit tests"
task :osx do |t|
run "xcodebuild -project FavIcon.xcodeproj -scheme FavIcon-OSX clean test"
end
end
task default: ["test:ios", "test:osx"]