forked from braintree/braintree_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (25 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
20
21
22
23
24
25
26
27
28
sudo: true
language: objective-c
cache:
- bundler
#- cocoapods
osx_image: xcode9.3
before_install:
- echo -e 'Host github.com\n StrictHostKeyChecking no' >> ~/.ssh/config
- brew update || brew update
- brew outdated xctool || brew upgrade xctool
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6 (10.1) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
install:
- bundle install
- bundle exec pod repo update --silent
- bundle exec pod install || { rm -rf ./Pods; bundle exec pod install; }
script:
- echo $SIMULATOR_ID
- open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID
- travis_wait 30 set -o pipefail && xcodebuild test -workspace Braintree.xcworkspace -scheme "UnitTests" -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.1' | xcpretty -c
- travis_wait set -o pipefail && xcodebuild test -workspace Braintree.xcworkspace -scheme "IntegrationTests" -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.1' | xcpretty -c
#- travis_wait bundle exec rake spec:unit
#- bundle exec rake spec:api:integration
notifications:
email: