-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
34 lines (31 loc) · 1.02 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
language: swift
osx_image: xcode10.2
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE="iOS Example.xcworkspace"
- EXAMPLE_SCHEME="iOS Example"
matrix:
- DESTINATION="OS=11.4,name=iPhone X" PROJECT="$FRAMEWORK_PROJECT" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="OS=12.1,name=iPhone X" PROJECT="$FRAMEWORK_PROJECT" BUILD_EXAMPLE="YES" POD_LINT="NO"
before_install:
- gem install cocoapods --prerelease --no-document --quiet
- gem install xcpretty --no-document --quiet
- pod --version
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
- cd Example && pod update
- cd ..
script:
# Build Example in Debug if specified
- cd Example
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
fi
# Run `pod lib lint` if specified
- cd ..
- if [ $POD_LINT == "YES" ]; then
pod lib lint;
fi