关于GitHub travis-ci检查的Swift项目总是失败?

问题描述 投票:0回答:2

我不知道如何编辑我的.travis.yml。每次travis-ci检查失败,我几乎疯了!

这是我的travis-ci链接:https://travis-ci.org/liman123/DebugMan

这是我的.travis.yml,有什么不对吗?谢谢!

osx_image: xcode8.3
language: objective-c

script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace 
DebugMan.xcworkspace -scheme DebugMan -sdk iphonesimulator -destination 
'platform=iOS Simulator,name=iPhone 6,OS=latest' ONLY_ACTIVE_ARCH=NO | 
xcpretty
- pod lib lint
swift github travis-ci
2个回答
0
投票
language: objective-c
script: 
  - xctool -project example.xcodeproj -scheme exampleTests build test -sdk 
iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES 
GCC_GENERATE_TEST_COVERAGE_FILES=YES
after_success:
  - bash <(curl -s https://codecov.io/bash)

0
投票

用双引号括起你的第一个脚本命令:

"set pipefail ... | xcpretty"

© www.soinside.com 2019 - 2024. All rights reserved.