forked from Leanplum/Leanplum-iOS-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.18 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
# Build only if commit is tagged or PR is opened/updated
if: (tag IS present) OR (type = pull_request)
language: objective-c
osx_image: xcode12.5
xcode_workspace: Leanplum.xcworkspace
xcode_scheme: LeanplumSDKApp
xcode_destination: platform=iOS Simulator,OS=14.5,name=iPhone 12
cache: cocoapods
podfile: Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod install
before_script:
>-
if [ -z "$TRAVIS_TAG" ]
then
echo "No tag, so not triggering Location"
else
./Tools/triggerLocation.sh
fi
before_deploy:
- ./Tools/verifyTag.sh
- ./Tools/build.sh
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:
- Release/Leanplum.framework.zip
- Release/dynamic/Leanplum.xcframework.zip
draft: true
on:
tags: true