forked from mixpanel/mixpanel-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·36 lines (33 loc) · 1.27 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
language: swift
before_install:
- gem uninstall fourflusher --force -a -q -I -x
- gem install fourflusher
- gem uninstall cocoapods --force -a -q -I -x
- gem install cocoapods -v 1.6.1
osx_image: xcode11
before_script: cd MixpanelDemo
podfile: MixpanelDemo/Podfile
branches:
only:
- master
env:
global:
- WORKSPACE=MixpanelDemo.xcworkspace
- SCHEME=MixpanelDemo
matrix:
- DESTINATION="OS=13.0,name=iPhone 11" 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 lib lint --allow-warnings && cd MixpanelDemo;
fi