Skip to content

Commit 074c165

Browse files
authored
Automate build and deploy of binary (#234)
1 parent d06ec8f commit 074c165

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

.travis.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,19 @@ before_install:
1111
- gem install cocoapods # Since Travis is not always on latest version
1212
- pod install --project-directory=Example
1313

14+
after_success:
15+
- ./build.sh
16+
1417
deploy:
15-
provider: script
16-
script: ./Tools/push.sh
17-
on:
18-
tags: true
18+
- provider: releases
19+
skip_cleanup: true
20+
api_key:
21+
secure: $GITHUB_TOKEN
22+
file: Leanplum.framework.zip
23+
draft: true
24+
on:
25+
tags: true
26+
- provider: script
27+
script: ./Tools/push.sh
28+
on:
29+
tags: true

Leanplum-iOS-SDK-source.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Pod::Spec.new do |s|
66
s.name = 'Leanplum-iOS-SDK-source'
7-
s.version = '2.2-beta-6'
7+
s.version = '2.2.1-beta.7'
88
s.summary = 'Mobile Marketing Platform. Integrated. ROI Engine.'
99
s.description = <<-DESC
1010
Leanplum’s integrated solution delivers meaningful engagement across messaging and the in-app

Leanplum-iOS-SDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'Leanplum-iOS-SDK'
11-
s.version = '2.2-beta.6'
11+
s.version = '2.2.1-beta.7'
1212
s.summary = 'Mobile Marketing Platform. Integrated. ROI Engine.'
1313
s.description = <<-DESC
1414
Leanplum’s integrated solution delivers meaningful engagement across messaging and the in-app

build.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ main() {
111111
pod install
112112
cd "$SDK_DIR/Example/Pods"
113113
build_ios_dylib
114-
build_tvos_dylib
114+
# build_tvos_dylib
115+
116+
zip_ios_dylib
115117

116118
echo "${GREEN} Done.${NORMAL}"
117119
}
@@ -178,6 +180,20 @@ build_ios_dylib() {
178180
printf "%s\n" "Successfully built Leanplum-SDK (iOS) Framework.\n"
179181
}
180182

183+
#######################################
184+
# Builds the iOS dynamic library Target.
185+
# Globals:
186+
# None
187+
# Arguments:
188+
# None
189+
# Returns:
190+
# None
191+
#######################################
192+
zip_ios_dylib() {
193+
cd "${RELEASE_DIR}"
194+
zip -r Leanplum.framework.zip Leanplum.framework
195+
mv Leanplum.framework.zip "$SDK_DIR"
196+
}
181197
#######################################
182198
# Builds the dynamic library tvOS target.
183199
# Globals:

0 commit comments

Comments
 (0)