Skip to content

Commit de22558

Browse files
committed
Automate build and deploy of binary (#234)
1 parent 17672b0 commit de22558

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.0'
11+
s.version = '2.2.1-beta.8'
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
}
@@ -206,6 +208,20 @@ build_ios_dylib() {
206208
printf "%s\n" "Successfully built Leanplum-SDK (iOS) Framework.\n"
207209
}
208210

211+
#######################################
212+
# Builds the iOS dynamic library Target.
213+
# Globals:
214+
# None
215+
# Arguments:
216+
# None
217+
# Returns:
218+
# None
219+
#######################################
220+
zip_ios_dylib() {
221+
cd "${RELEASE_DIR}"
222+
zip -r Leanplum.framework.zip Leanplum.framework
223+
mv Leanplum.framework.zip "$SDK_DIR"
224+
}
209225
#######################################
210226
# Builds the dynamic library tvOS target.
211227
# Globals:

0 commit comments

Comments
 (0)