add setup script for development environment

This commit is contained in:
Ivan Smolin 2019-06-10 18:25:44 +03:00
parent 15ef3d7332
commit b0dff239f9
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#!/bin/sh
PROJECT_PATH=$1
cd ${PROJECT_PATH}
# Install ruby dependencies (cocoapods, fastlane, etc.)
bundle install
# install Homebrew
if [[ $(command -v brew) == "" ]]; then
# Prevent "Press RETURN to continue or any other key to abort" message when installing Homebrew
export CI=true
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install brew dependencies (carthage, etc.)
brew bundle
# Install pods dependencies
bundle exec pod repo update
bundle exec pod install
# Install carthage dependencies
carthage bootstrap --platform iOS