Merge pull request #117 from TouchInstinct/add_setup_script
Add setup development environment script
This commit is contained in:
commit
3f03e57a0a
|
|
@ -0,0 +1,44 @@
|
|||
#!/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
|
||||
|
||||
case $2 in
|
||||
--InstallDevelopmentCodeSigning)
|
||||
# Install certificates & provision profiles for development
|
||||
|
||||
cd ${PROJECT_PATH}/fastlane
|
||||
|
||||
bundle exec fastlane SyncCodeSigning
|
||||
;;
|
||||
esac
|
||||
|
||||
Loading…
Reference in New Issue