forked from veritrans/Veritrans-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.15 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
29
30
31
32
33
34
35
36
osx_image: xcode8.2
language: objective-c
branches:
- development
before_install:
- gem install xcpretty
- gem install cocoapods -v '1.1.1'
- brew install gflags
script:
#reset pods
- rm -rf "~/Library/Caches/CocoaPods"
- rm -rf "Pods/"
- pod install
- pod update
#create simulator
- xcrun simctl erase all
- xcrun simctl create iPhone-6-10 com.apple.CoreSimulator.SimDeviceType.iPhone-6 com.apple.CoreSimulator.SimRuntime.iOS-9-0
#run test
- xcodebuild -workspace MidtransSDK.xcworkspace -scheme MidtransMobileDemo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone-6-10,OS=9.0' GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ONLY_ACTIVE_ARCH=NO clean build test | xcpretty
#TEST COCOAPODS BUILD
#- cd DemoPods
#- rm -rf "Pods/"
#- pod install
#- pod update
#- xcodebuild -workspace VTDirectDemo.xcworkspace -scheme DemoPods -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0' ONLY_ACTIVE_ARCH=NO clean test | xcpretty
#- cd ..
notifications:
email: true
slack: midtrans:yWsmSPQV9XHHNXpXPGIxzybP
# after_success:
# - bash <(curl -s https://codecov.io/bash) -t :5e7f6972-2273-471b-ad30-68797581a09c