Created
September 28, 2016 07:47
-
-
Save mcany/6ad53cda68c0150ef278ebcb03431811 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
git fetch --unshallow | |
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | |
if [ "$TRAVIS_BRANCH" == "development" ]; then | |
bundle exec fastlane upload env:sandbox type:appstore | |
bundle exec fastlane upload env:sandbox type:adhoc | |
echo Uploading build log... | |
curl -T ./build/logs/KapGelSandbox-KapGel\ Sandbox.log chunk.io | |
elif [ "$TRAVIS_BRANCH" == "master" ]; then | |
bundle exec fastlane upload env:production type:appstore | |
echo Uploading build log... | |
curl -T ./build/logs/KapGel-KapGel.log chunk.io | |
fi | |
else | |
if [ "$TRAVIS_BRANCH" == "development" ]; then | |
bundle exec fastlane upload env:sandbox type:adhoc pr:"$TRAVIS_PULL_REQUEST" | |
echo Uploading build log... | |
curl -T ./build/logs/KapGelSandbox-KapGel\ Sandbox.log chunk.io | |
elif [ "$TRAVIS_BRANCH" == "master" ]; then | |
bundle exec fastlane upload env:production type:appstore | |
echo Uploading build log... | |
curl -T ./build/logs/KapGel-KapGel.log chunk.io | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment