Commit 5286164d authored by manuroe's avatar manuroe
Browse files

Fastlane: Add a lane for tests

parent a9dcfce6
......@@ -79,6 +79,33 @@ platform :ios do
)
end
desc "Run tests"
lane :test do
xcodegen(spec: "project.yml")
cocoapods
opts = {
:clean => true,
:scheme => "Riot",
:workspace => "Riot.xcworkspace",
:configuration => "Debug",
:code_coverage => true,
# Test result configuration
:result_bundle => true,
:output_directory => "./build/test",
:open_report => !is_ci?
}
begin
scan(opts)
ensure
Dir.chdir("../#{opts[:output_directory]}") do
xcresult = "#{opts[:scheme]}.xcresult"
sh("zip", "-r", "#{xcresult}.zip", xcresult)
end
end
end
#### Private ####
desc "Download App Store or Ad-Hoc provisioning profiles"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment