-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
19 lines (17 loc) · 993 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: objective-c
osx_image: xcode9.3
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 -m 1 "iPhone 8 (11" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
before_script:
- carthage checkout
- cd Testing
- bundle install
- bundle exec pod install --repo-update
- set -o pipefail
script:
- xcodebuild -workspace SignalProtocolTests.xcworkspace -scheme Tests-Pods-macOS -sdk macosx -arch x86_64 test | xcpretty -c
- xcodebuild -workspace SignalProtocolTests.xcworkspace -scheme Tests-Framework-macOS -sdk macosx -arch x86_64 test | xcpretty -c
- xcodebuild -workspace SignalProtocolTests.xcworkspace -scheme Tests-Framework-iOS -sdk iphonesimulator -destination "id=$IOS_SIMULATOR_UDID" test | xcpretty -c