-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fb4cbc
commit 451d7f8
Showing
5 changed files
with
43 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,5 @@ scripts/config.json | |
**/*.keystore | ||
**/secrets.tar | ||
**/*.cer | ||
**/*.p12 | ||
**/*.mobileprovision |
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# plastic-patrol | ||
|
||
This app is built based on [Geovation Photos](https://github.com/Geovation/photos) stack. | ||
This app is built based on [Geovation Photos](https://github.com/Geovation/photos) stack. | ||
|
||
# Travis | ||
After changing any secret file: | ||
``` | ||
cd cordova-app | ||
tar cvf secrets.tar build.json *.cer *.p12 *.mobileprovision *.keystore | ||
travis encrypt-file secrets.tar secrets.tar.enc -p -r Geovation/plastic-patrol | ||
``` |
Binary file not shown.
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,23 @@ | ||
#!/bin/sh | ||
|
||
# Create a custom keychain | ||
security create-keychain -p travis ios-build.keychain | ||
|
||
# Make the custom keychain default, so xcodebuild will use it for signing | ||
security default-keychain -s ios-build.keychain | ||
|
||
# Unlock the keychain | ||
security unlock-keychain -p travis ios-build.keychain | ||
|
||
# Set keychain timeout to 1 hour for long builds | ||
# see http://www.egeek.me/2013/02/23/jenkins-and-xcode-user-interaction-is-not-allowed/ | ||
security set-keychain-settings -t 3600 -l ~/Library/Keychains/ios-build.keychain | ||
|
||
# Add certificates to keychain and allow codesign to access them | ||
security import ./cordova-app/certs/apple.cer -k ~/Library/Keychains/ios-build.keychain -T /usr/bin/codesign | ||
security import ./cordova-app/certs/dist.cer -k ~/Library/Keychains/ios-build.keychain -T /usr/bin/codesign | ||
security import ./cordova-app/certs/dist.p12 -k ~/Library/Keychains/ios-build.keychain -P $APPLE_KEY_PASSWORD -T /usr/bin/codesign | ||
|
||
# Put the provisioning profile in place | ||
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles | ||
cp "./cordova-app/Geovation.mobileprovision" ~/Library/MobileDevice/Provisioning\ Profiles/ |