forked from parse-community/ParseUI-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1022 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
31
32
branches:
only:
- master
language: objective-c
os: osx
osx_image: xcode7.1
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- TEST_TYPE=ParseUI
- TEST_TYPE=ParseUIDemo-ObjC
- TEST_TYPE=ParseUIDemo-Swift
- TEST_TYPE=CocoaPods
before_install:
- gem install xcpretty --no-document -N
- gem install cocoapods --no-document --quiet
script:
- |
set -o pipefail
pod install
if [ "$TEST_TYPE" = ParseUI ]; then
xcodebuild -workspace ParseUI.xcworkspace -scheme 'ParseUI' -sdk iphonesimulator build | xcpretty -c
elif [ "$TEST_TYPE" = ParseUIDemo-ObjC ]; then
xcodebuild -workspace ParseUI.xcworkspace -scheme 'ParseUIDemo' -sdk iphonesimulator build | xcpretty -c
elif [ "$TEST_TYPE" = ParseUIDemo-Swift ]; then
xcodebuild -workspace ParseUI.xcworkspace -scheme 'ParseUIDemo-Swift' -sdk iphonesimulator build | xcpretty -c
elif [ "$TEST_TYPE" = CocoaPods ]; then
pod lib lint ParseUI.podspec
pod lib lint --use-libraries ParseUI.podspec
fi