This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
forked from mixpanel/mixpanel-iphone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (34 loc) · 1.75 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 install cocoapods
osx_image: xcode8
branches:
only:
- master
env:
global:
- APP_NAME="HelloMixpanel"
- 'DEVELOPER_NAME="iPhone Distribution: Mixpanel, Inc."'
- PROFILE_NAME="HelloMixpanel_Ad_Hoc"
- secure: hYFo+h9Txhp2x9sTIDHrbhiVJk1Y5rvbJkkhyaH0Rhco2v5BZNzq5Uoegl4DJ8YmM7Qm8Xl1SBDNK9WvfxowCO0Bc8DzFPWqh2p9bN2HyM/dwjLC1K9Imlssa4oxN4sHFG7x6Ck24UWpErR3wG8umY7Eyrlh3TzNtAEoaSRpMpc=
matrix:
- DESTINATION="platform=iOS Simulator,OS=10.0,name=iPhone 5" POD_LINT="YES"
- DESTINATION="platform=iOS Simulator,OS=9.1,name=iPhone 6s Plus" POD_LINT="NO"
podfile: HelloMixpanel/podfile
before_script:
- openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in scripts/profile/HelloMixpanel_Ad_Hoc.mobileprovision.enc
-d -a -out scripts/profile/HelloMixpanel_Ad_Hoc.mobileprovision
- openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in scripts/certs/dist.cer.enc -d -a
-out scripts/certs/dist.cer
- openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in scripts/certs/dist.p12.enc -d -a
-out scripts/certs/dist.p12
script:
- set -o pipefail
# travis_retry here because sometimes tests mysteriously fail without running any tests but will succeed the next time
- travis_retry xcodebuild -workspace "HelloMixpanel/HelloMixpanel.xcworkspace" -scheme "[iOS] HelloMixpanel" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c
- xcodebuild -workspace "HelloMixpanel/HelloMixpanel.xcworkspace" -scheme "[iOS] HelloMixpanel" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c
# Run `pod lib lint` if specified
# allow warnings while surveys are deprecated but not yet removed. disallow them again later
- if [ $POD_LINT == "YES" ]; then
pod lib lint --allow-warnings;
fi