快速通道在模拟器上安装.app以在travis上运行自动化

时间:2016-04-05 01:34:07

标签: travis-ci fastlane

我是快车道的新手并试图在travis上配置它。 我想在模拟器上安装.app文件并打开它。 (我这样做是为了对travis进行appium测试)

请告诉我如何使用快速通道在travis上实现这一目标?

我目前的fastFile看起来像这样,

lane :test do
 scan(scheme: "MyScheme")
end 

1 个答案:

答案 0 :(得分:2)

gym(
  scheme: "SchemeName" ,
  configuration: "ConfigurationName",
  clean: true,
  workspace: "WorkSpaceName.xcworkspace",
  output_directory: "../output_directory",
  output_name: "IPA_Name.ipa",
  xcargs: "ARCHIVE=YES" # Used to tell the Fabric run script to upload dSYM file
)

open -a Simulator
xcrun simctl install booted ../output_directory/IPA_Name.ipa