forked from bazaarvoice/bv-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 946 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: objective-c
osx_image: xcode8
podfile: ./Tests/Podfile
git:
depth: 1
before_install:
# - gem update cocoapods --no-ri --no-rdoc
- gem install cocoapods -v '1.0.1'
- gem install xcpretty --no-ri --no-rdoc
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6 (10.0) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
script:
- open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID
# Run the unit tests on the available simulator
- cd ./Tests
- pod install
- cd ..
- xcodebuild test -workspace ./Tests/BVSDK.xcworkspace -scheme "BVSDK-Tests" -configuration Debug -sdk iphonesimulator | xcpretty -c
# Sanity test to make sure BVSDKDemo installs dependencies and builds OK
- cd ./Examples/BVSDKDemo
- pod update
- cd ../..
- xcodebuild -workspace ./Examples/BVSDKDemo/BVSDKDemo.xcworkspace -scheme "BVSDKDemo" -configuration Debug -sdk iphonesimulator | egrep -A 5 "(error|warning):"