forked from hps/heartland-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (27 loc) · 923 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
29
30
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode 8.3
language: objective-c
cache:
- bundler
- cocoapods
podfile: Example/Podfile
before_install:
- gem install bundler
- gem install cocoapods # Since Travis is not always on latest version
- gem install xcpretty -N
# - pod update --project-directory=Example
# - pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -workspace Example/Heartland-iOS-SDK.xcworkspace -scheme Heartland-iOS-SDK-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
# Following extra lines added for automate cocoapod release
# Late if need can follow https://fuller.li/posts/automated-cocoapods-releases-with-ci/
deploy:
provider: script
script: ./scripts/push.sh production $TRAVIS_TAG
skip_cleanup: true
on:
branch: master
tags: false