forked from munsifhayat/CountryPickerView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 1.23 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
37
38
language: objective-c
osx_image: xcode10.2
env:
global:
- FRAMEWORK_SCHEME="CountryPickerView"
- FRAMEWORK_PROJECT="CountryPickerView.xcodeproj"
- IOS_SDK=iphonesimulator12.2
- DEMO_SCHEME="CountryPickerViewDemo"
- DEMO_WORKSPACE=CountryPickerViewDemo/CountryPickerViewDemo.xcworkspace
- PLATFORM="platform=iOS Simulator,OS=12.2,name=iPhone X"
matrix:
- BUILD_TYPE=FRAMEWORK POD_LINT="TRUE"
- BUILD_TYPE=DEMO POD_LINT="FALSE"
before_install:
- gem install cocoapods -no-rdoc -no-ri
- gem install xcpretty -no-rdoc -no-ri
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- xcrun simctl list
# Build the framework and Demo app
- if [ $BUILD_TYPE == "FRAMEWORK" ]; then
xcodebuild build -project "$FRAMEWORK_PROJECT" -scheme "$FRAMEWORK_SCHEME" -sdk "$IOS_SDK" -destination "$PLATFORM" | xcpretty;
elif [ $BUILD_TYPE == "DEMO" ]; then
pod install --project-directory=./CountryPickerViewDemo --repo-update;
xcodebuild build -workspace "$DEMO_WORKSPACE" -scheme "$DEMO_SCHEME" -sdk "$IOS_SDK" -destination "$PLATFORM" | xcpretty;
else
echo "Unknown BUILD_TYPE $BUILD_TYPE";
fi
# Lint the pod
- if [ $POD_LINT == "TRUE" ]; then
pod lib lint;
fi