forked from robbiehanson/CocoaAsyncSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (16 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
osx_image: xcode8.1
language: objective-c
before_install:
# Fix Travis xcodebuild exited with 65 https://github.com/travis-ci/travis-ci/issues/6675#issuecomment-257964767
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep "iPhone 6 (10.1" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
install:
- pod install --project-directory=./Tests/iOS
- pod install --project-directory=./Tests/Mac
script:
- set -o pipefail
- travis_retry xcodebuild -workspace ./Tests/iOS/CocoaAsyncSocket.xcworkspace -scheme CocoaAsyncSocketTestsiOS -sdk iphonesimulator -destination 'name=iPhone 6' test | xcpretty -c
- xcodebuild -workspace ./Tests/Mac/CocoaAsyncSocket.xcworkspace -scheme CocoaAsyncSocketTestsMac -sdk macosx -destination 'platform=OS X,arch=x86_64' test | xcpretty -c
- travis_retry xcodebuild -project CocoaAsyncSocket.xcodeproj -scheme "iOS Framework" -sdk iphonesimulator -destination 'name=iPhone 6' build | xcpretty -c
- xcodebuild -project CocoaAsyncSocket.xcodeproj -scheme "Mac Framework" -sdk macosx -destination 'platform=OS X,arch=x86_64' build | xcpretty -c