我不知道如何编辑我的.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

最佳答案

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)

关于swift - GitHub上的Swift项目travis-ci检查总是失败吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49041231/

10-16 08:18