forked from mixpanel/mixpanel-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·35 lines (32 loc) · 1.31 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
language: objective-c
before_install:
- gem uninstall cocoapods --force -a -q -I -x
- gem install cocoapods -v 1.4.0
osx_image: xcode10
before_script: cd MixpanelDemo
podfile: MixpanelDemo/Podfile
branches:
only:
- master
env:
global:
- WORKSPACE=MixpanelDemo.xcworkspace
- SCHEME=MixpanelDemo
matrix:
- DESTINATION="OS=9.0,name=iPhone 6s" SCHEME="$SCHEME" RUN_TESTS="YES" POD_LINT="YES"
- DESTINATION="OS=12.0,name=iPhone X" SCHEME="$SCHEME" RUN_TESTS="YES" POD_LINT="YES"
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# Build Framework in Debug and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty -c;
else
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
fi
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
cd .. && pod _1.4.0_ lib lint --allow-warnings && cd MixpanelDemo;
fi