forked from Leanplum/Rondo-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (45 loc) · 1.97 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: objective-c
osx_image: xcode14
xcode_workspace: Rondo-iOS.xcworkspace
xcode_scheme: Rondo-iOS
xcode_destination: platform=iOS Simulator,OS=16.0,name=iPhone 14
cache: cocoapods
podfile: Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- gem install bundler
install:
- bundle install
- bundle update fastlane
- pod install --repo-update
- echo -e "machine github.com\n login $GITHUB_TOKEN" >> ~/.netrc
- bundle exec fastlane install_certificates
- bundle exec fastlane match appstore
script:
- bundle exec fastlane release
before_deploy:
- >
if ! [ "$TAG_ONCE" ]; then
export TAG_ONCE=1;
git config --local user.email "$GITHUB_EMAIL"
git config --local user.name "$GITHUB_NAME"
export TRAVIS_TAG=$LEANPLUM_SDK_VERSION
git tag $TRAVIS_TAG
fi
deploy:
- provider: script
skip_cleanup: true
script: bundle exec fastlane testflight
on:
condition: '-n "$LEANPLUM_SDK_VERSION"'
all_branches: true
- provider: releases
name: "Rondo iOS SDK $LEANPLUM_SDK_VERSION"
tag: "$LEANPLUM_SDK_VERSION"
api_key:
secure: "PkA6Ar+rfUst4SCakG61kx4oPx9X17y2lhlnAzttFjYRMaqneUsRns5xtIcmQ/3Z8iINpAl45hr8V+Y0tZIZ0EwQTNfL3PkpHs/cTfQIzy0jg8IneoN6zDlA9GtheXgDp3pIzn1iDVQl1y3Ir6Uy7O3vRkRcmQ+zKdyYlSiaxGAyS0gL5EO+QItkFI8hRem7A4W8y+spe1ZToQTWShBsgiOogFwRSomte6+d4ICRHQddmf2j/LbiBxv5Yf5t/rtC07/I3nAa4hrUen0USjl4idzoK1zu9OIpgYrRlMOxrOx5s1gafdiKRfkxh2oJVX2k0gCFHVBK2jVjK8N+Cs3R5gRO8ZjY6CwH6/pQOOYtQ5Do91Dc1M8A7jsT1L4W8EX2Wat4AvNH2el4LBwr3Rw1+oVFNJ5Q56XxVcL6sMmyuyx4Hm477lUPh0mtt0SMmrVvjec+mVEEY7YYb86mp+dn5laDQxX29T3nlE7gD2ZDmI3GW7TJ7lh6c8bH7Z/VTCNFLI6Ncq7B/gENECSsVoDX6BqdZl0CYE/MQCy7SqECBSS6vgq27rQ1i/gtKWscNdalzvYhOe2WpanXTq3qlOCsWFzdzTunBtYlwNeZkhgSw3vVQTZ5y8Ix4s3TQZH3boRvFoEhePBFEOK5xbk3r/QAFdd5wMGzg6h8NnmD3nBx5ak="
file: "/Users/travis/build/Leanplum/Rondo-iOS/Rondo-iOS.ipa"
skip_cleanup: true
on:
branch: master
condition: '-n "$LEANPLUM_SDK_VERSION"'