我不確定Travis CI的行爲是否應該如此,我覺得它「過度反應」。它在測試我何時打開公關,何時合併公關以及何時(例如)編輯README.md並推送給主人。使用Swift框架的Travis CI
這是我的Travis CI配置YML。
language: objective-c
xcode_workspace: {name}
xcode_scheme: {name}Tests
xcode_sdk: iphonesimulator10.0
osx_image: xcode8.3
branches:
only:
- master
before_install:
- pod repo update
script:
- xcodebuild -workspace {name}.xcworkspace -scheme {name} -sdk iphonesimulator ONLY_ACTIVE_ARCH=no
- xcodebuild test -workspace {name}.xcworkspace -scheme {name}Tests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone 6s Plus,OS=10.0'