|
| 1 | +language: objective-c |
| 2 | +osx_image: xcode9 |
| 3 | +before_install: |
| 4 | + - brew uninstall carthage |
| 5 | + - HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/6ae4f69a652fb0ecb102b0c9216378679a4f1b92/Formula/carthage.rb # 0.22.0 |
| 6 | +install: true |
| 7 | +branches: |
| 8 | + only: |
| 9 | + - master |
| 10 | + # Credit: @Omnikron13, https://github.com/mojombo/semver/issues/32 |
| 11 | + - /^(\d+\.\d+\.\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/ |
| 12 | + - /^hotfix-(\d+\.\d+\.\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/ |
| 13 | +cache: |
| 14 | + directories: |
| 15 | + - $HOME/Library/Caches/org.carthage.CarthageKit/dependencies |
| 16 | + - Carthage/Build |
| 17 | + |
| 18 | +jobs: |
| 19 | + include: |
| 20 | + - osx_image: xcode9 |
| 21 | + script: |
| 22 | + - XCODE_SCHEME=FlexibleDiff |
| 23 | + XCODE_SDK=macosx |
| 24 | + XCODE_ACTION="build test" |
| 25 | + XCODE_DESTINATION="arch=x86_64" |
| 26 | + script/build |
| 27 | + - XCODE_SCHEME=FlexibleDiff |
| 28 | + XCODE_SDK=iphonesimulator |
| 29 | + XCODE_ACTION="build-for-testing test-without-building" |
| 30 | + XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 6s" |
| 31 | + script/build |
| 32 | + - XCODE_SCHEME=FlexibleDiff |
| 33 | + XCODE_SDK=appletvsimulator |
| 34 | + XCODE_ACTION="build-for-testing test-without-building" |
| 35 | + XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p" |
| 36 | + script/build |
| 37 | + - XCODE_SCHEME=FlexibleDiff |
| 38 | + XCODE_SDK=watchsimulator |
| 39 | + XCODE_ACTION=build |
| 40 | + XCODE_DESTINATION="platform=watchOS Simulator,name=Apple Watch - 38mm,OS=2.2" |
| 41 | + script/build |
| 42 | + - script: |
| 43 | + - pod repo update --silent |
| 44 | + - pod lib lint FlexibleDiff.podspec |
| 45 | + env: |
| 46 | + - JOB=PODSPEC |
| 47 | + - stage: carthage |
| 48 | + script: carthage build --cache-builds --no-skip-current |
0 commit comments