-
Notifications
You must be signed in to change notification settings - Fork 61
/
.travis.yml
54 lines (48 loc) · 1.24 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
52
53
54
# Build only if commit is tagged or PR is opened/updated
if: |
((tag IS present) OR (type = pull_request)) AND \
((commit_message != 'update spm') AND (sender != env(GITHUB_NAME)))
language: objective-c
osx_image: xcode14
xcode_workspace: Leanplum.xcworkspace
xcode_scheme: LeanplumSDKApp
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
- pod install
before_deploy:
- ./Tools/verifyTag.sh
- >
if ! [ "$BUILD_ONCE" ]; then
export BUILD_ONCE=1;
./Tools/build.sh;
fi
after_deploy:
>-
if ! [ "$AFTER_DEPLOY_RUN" ]; then
export AFTER_DEPLOY_RUN=1;
./Tools/triggerRondo.sh;
version=`cat sdk-version.txt`; if [[ $version != *"beta"* ]]; then ./Tools/triggerRN.sh; fi;
fi
deploy:
- provider: script
skip_cleanup: true
script: ./Tools/push.sh
on:
tags: true
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file:
- Leanplum.zip
- Release/static/Leanplum.xcframework.zip
draft: true
on:
tags: true
- provider: script
skip_cleanup: true
script: ./Tools/pushSPM.sh
on:
tags: true