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