|
1 | | -language: objective-c |
2 | | -osx_image: xcode7.3 |
3 | | -script: |
4 | | - - pod lib lint |
5 | | - - set -o pipefail |
6 | | - - xcodebuild test -scheme Swiftz -configuration Debug | xcpretty -c |
7 | | - - xcodebuild test -scheme Swiftz-iOS -configuration Debug -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6s" | xcpretty -c |
8 | | - - xcodebuild test -scheme Swiftz-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | xcpretty -c |
9 | | - - xcodebuild build -scheme Swiftz-watchOS -destination 'platform=watchOS Simulator,name=Apple Watch - 42mm' | xcpretty -c |
10 | | - |
| 1 | +env: |
| 2 | + global: |
| 3 | + - LC_CTYPE=en_US.UTF-8 |
| 4 | +matrix: |
| 5 | + include: |
| 6 | + - os: osx |
| 7 | + language: objective-c |
| 8 | + osx_image: xcode7.3 |
| 9 | + before_install: |
| 10 | + - git submodule update --init --recursive |
| 11 | + script: |
| 12 | + - pod lib lint |
| 13 | + - carthage build --no-skip-current |
| 14 | + - os: osx |
| 15 | + language: objective-c |
| 16 | + osx_image: xcode7.3 |
| 17 | + before_install: |
| 18 | + - git submodule update --init --recursive |
| 19 | + script: |
| 20 | + - set -o pipefail |
| 21 | + - xcodebuild test -scheme Swiftz | xcpretty -c |
| 22 | + # !!!: Make sure desired device name & OS version are suitable for the Xcode version installed on osx_image |
| 23 | + - iOS_DEVICE_NAME="iPad Pro" |
| 24 | + - iOS_RUNTIME_VERSION="9.3" |
| 25 | + # Get simulator identifier for desired device/runtime pair |
| 26 | + - SIMULATOR_ID=$(xcrun instruments -s | grep -o "${iOS_DEVICE_NAME} (${iOS_RUNTIME_VERSION}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/") |
| 27 | + - echo $SIMULATOR_ID |
| 28 | + - echo $iOS_DEVICE_NAME |
| 29 | + - echo $iOS_RUNTIME_VERSION |
| 30 | + - xcodebuild test -scheme Swiftz-iOS -destination "platform=iOS Simulator,name=${iOS_DEVICE_NAME},OS=${iOS_RUNTIME_VERSION}" | xcpretty -c |
| 31 | + - xcodebuild test -scheme Swiftz-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | xcpretty -c |
| 32 | + - os: linux |
| 33 | + language: generic |
| 34 | + sudo: required |
| 35 | + dist: trusty |
| 36 | + before_install: |
| 37 | + - git submodule update --init --recursive |
| 38 | + - wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import - |
| 39 | + - wget https://swift.org/builds/swift-2.2.1-release/ubuntu1404/swift-2.2.1-RELEASE/swift-2.2.1-RELEASE-ubuntu14.04.tar.gz |
| 40 | + - tar xzf swift-2.2.1-RELEASE-ubuntu14.04.tar.gz |
| 41 | + - export PATH=${PWD}/swift-2.2.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}" |
| 42 | + script: |
| 43 | + # Uncomment when releasing Swift 3.0 |
| 44 | + # - swift build |
11 | 45 | notifications: |
12 | 46 | webhooks: |
13 | 47 | urls: |
14 | 48 | - https://webhooks.gitter.im/e/1d781e1bcbabade5de35 |
15 | 49 | on_success: always |
16 | 50 | on_failure: always |
17 | 51 | on_start: always |
| 52 | + |
0 commit comments