-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis.yml
21 lines (18 loc) · 846 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: objective-c
osx_image: xcode11.1
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 (13" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- bash ./scripts/build-all.sh
install:
- cd Tests/iOS
- bundle install
- bundle exec pod install
- cd ../macOS
- bundle install
- bundle exec pod install
script:
- travis_retry xcodebuild -workspace CPAProxy.xcworkspace -scheme CPAProxyTests -sdk iphonesimulator -arch x86_64 test | xcpretty -c
- cd ../iOS
- travis_retry xcodebuild -workspace CPAProxy.xcworkspace -scheme CPAProxyTests -sdk iphonesimulator -destination "id=$IOS_SIMULATOR_UDID" test | xcpretty -c