This file contains hidden or 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/bash | |
# | |
# Prints the given command, then executes it | |
# Example: print_and_do_command echo 'hi' | |
# | |
function print_and_do_command { | |
echo " -> $ $@" | |
$@ | |
} |
This file contains hidden or 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/bash | |
FILES=/Applications/Xcodes/Xcode*.app | |
for f in $FILES | |
do | |
echo "--------------" | |
echo "Switching to Xcode at: ${f}" | |
xcode_switch_arg="${f}/Contents/Developer" | |
sudo xcode-select --switch "${xcode_switch_arg}" | |
echo " Version info:" | |
xcodebuild -version |
This file contains hidden or 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/bash | |
echo "----------------" | |
echo "Removing existing keys" | |
ssh-add -K | |
echo "----------------" | |
echo "List of keys:" | |
ssh-add -l | |
echo "----------------" | |
ssh-agent -k |
This file contains hidden or 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/bash | |
echo "---- Source Dir content:" | |
ls -alh "${BITRISE_SOURCE_DIR}" | |
echo "-------------------------" |
This file contains hidden or 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/bash | |
echo "--- Bitrise Box Info:" | |
cat ~/Desktop/box-info.json | |
echo "---------------------" |
This file contains hidden or 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/bash | |
# | |
# To export an environment for other steps in your workflow you have to add the environment variable to | |
# a persistent environment store. Every step runs in it's own shell session and so if | |
# a previous step just exports an environment it won't be available for other steps, | |
# unless you add it to a persistent store (like .bash_profile) | |
# | |
# |
This file contains hidden or 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/bash | |
# | |
# Add this script as a Bash Script Runner step or use this gist directly on Bitrise | |
# to install mogenerator (https://github.com/rentzsch/mogenerator) | |
# with the pre-installed homebrew (http://brew.sh/) | |
# | |
brew update | |
brew install mogenerator |
This file contains hidden or 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/bash | |
# | |
# Notes: | |
# * You can get your source code's path on Bitrise with the ${BITRISE_SOURCE_DIR} environment variable | |
# * The IPA path (if you use the Xcode Archive Step) is stored in the ${BITRISE_IPA_PATH} environment | |
# | |
/path/to/Crashlytics.framework/submit <API_KEY> <BUILD_SECRET> -ipaPath "${BITRISE_IPA_PATH}" -emails [email protected],[email protected] -notesPath ~/Notes/ReleaseNotes.txt -groupAliases GroupAlias,GroupAlias2 |
This file contains hidden or 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/bash | |
# | |
# Env export required for JDK newer than 1.6 or 1.7 | |
# see: http://stackoverflow.com/questions/20925253/android-studio-failed-to-load-jvm-on-mac-osx-mavericks/27647165#27647165 | |
# OR use: | |
# $ launchctl setenv STUDIO_JDK /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk | |
# | |
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk |
This file contains hidden or 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
<!-- | |
Don't forget to set the /path/to/.monitrc path! | |
* Save this into: ~/Library/LaunchAgents/vb.monit.plist | |
* Load with (auto loaded at user login): launchctl load ~/Library/LaunchAgents/vb.monit.plist | |
* Unload with: launchctl unload ~/Library/LaunchAgents/vb.monit.plist | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> |