This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[ios] Publish nightly build #8337
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Pod::Spec.new do |m| | ||
|
||
version = '3.5.0-beta.2' | ||
|
||
m.name = 'Mapbox-iOS-SDK-nightly-dynamic' | ||
m.version = "#{version}-nightly" | ||
|
||
m.summary = 'Open source vector map solution for iOS with full styling capabilities.' | ||
m.description = 'Open source, OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa Touch APIs.' | ||
m.homepage = 'https://www.mapbox.com/ios-sdk/' | ||
m.license = { :type => 'BSD', :file => 'LICENSE.md' } | ||
m.author = { 'Mapbox' => 'mobile@mapbox.com' } | ||
m.screenshot = "https://www.mapbox.com/ios-sdk/api/#{version}/img/screenshot.png" | ||
m.social_media_url = 'https://twitter.com/mapbox' | ||
m.documentation_url = 'https://www.mapbox.com/ios-sdk/api/' | ||
|
||
m.source = { | ||
:http => "https://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/mapbox-ios-sdk-nightly-dynamic.zip", | ||
:flatten => true | ||
} | ||
|
||
m.platform = :ios | ||
m.ios.deployment_target = '8.0' | ||
|
||
m.requires_arc = true | ||
|
||
m.vendored_frameworks = 'dynamic/Mapbox.framework' | ||
m.module_name = 'Mapbox' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -o pipefail | ||
set -u | ||
|
||
function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; } | ||
function finish { >&2 echo -en "\033[0m"; } | ||
trap finish EXIT | ||
|
||
export TRAVIS_REPO_SLUG=mapbox-gl-native | ||
|
||
DATE=`date +%Y-%m-%d` | ||
NIGHTLY_TYPE="nightly-dynamic" | ||
|
||
step "Uploading ${NIGHTLY_TYPE} build for ${DATE} to s3…" | ||
|
||
./platform/ios/scripts/publish.sh "${NIGHTLY_TYPE}" "${DATE}" | ||
|
||
step "Finished deploying ${NIGHTLY_TYPE} build in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of copying over, can we create a link on S3 that points to the most recent version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far as I can tell, s3 doesn’t support symlinks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Object-level redirects look like they're perfectly suited for this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like it may be possible to create a placeholder file and then the s3 API could be used here to set up a redirect to the latest version by updating the metadata of the placeholder with
x-amz-website-redirect-location
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be ideal — I’ll look into setting up a redirect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn’t make redirects work — we’re not strictly a “website” and aws is simply passing the
x-amz-website-redirect-location
header in GET requests, returning HTTP 200 and a blank file instead of HTTP 301 and the redirected file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, HTTP 200 appears to be the intended behavior for this endpoint, per this thread:
Hitting a website endpoint confirms we’re not set up as a website on s3. Configuring this bucket as a static website is more than I want to do to get this redirect working.