forked from mixpanel/mixpanel-iphone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (25 loc) · 985 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
language: objective-c
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: xcode12
branches:
only:
- master
- 4.0.0.beta
env:
global:
- WORKSPACE="HelloMixpanel/HelloMixpanel.xcworkspace"
- SCHEME="[iOS] HelloMixpanel"
matrix:
- DESTINATION="OS=13.0,name=iPad Pro (9.7-inch)" RUN_TESTS="YES" POD_LINT="YES"
podfile: HelloMixpanel/podfile
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# travis_retry here because sometimes tests mysteriously fail without running any tests but will succeed the next time
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c