Skip to content

Instantly share code, notes, and snippets.

@vasarhelyia
Last active November 24, 2015 21:30
Show Gist options
  • Save vasarhelyia/ecc7e6391b574cc31064 to your computer and use it in GitHub Desktop.
Save vasarhelyia/ecc7e6391b574cc31064 to your computer and use it in GitHub Desktop.
bitrise_step_sh
#!/bin/bash
set -e
NO_USE_BINARIES=""
VERBOSE_MODE=""
if [[ "${no_use_binaries}" == "true" ]] ; then
NO_USE_BINARIES='--no-use-binaries'
fi
if [[ "${verbose_output}" == "true" ]] ; then
VERBOSE_MODE='--verbose'
fi
if [ ! -z "${working_dir}" ] ; then
echo "==> Switching to working directory: ${working_dir}"
cd "${working_dir}"
if [ $? -ne 0 ] ; then
echo " [!] Failed to switch to working directory: ${working_dir}"
exit 1
fi
fi
brew update && brew install carthage
carthage "${carthage_command}" --platform iOS ${NO_USE_BINARIES} ${VERBOSE_MODE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment