Skip to content

Instantly share code, notes, and snippets.

@mcany
Created September 28, 2016 07:47
Show Gist options
  • Save mcany/6ad53cda68c0150ef278ebcb03431811 to your computer and use it in GitHub Desktop.
Save mcany/6ad53cda68c0150ef278ebcb03431811 to your computer and use it in GitHub Desktop.
#!/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