Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save onderceylan/77c7b02cfafa13b56eabd4447e4d8d28 to your computer and use it in GitHub Desktop.
Save onderceylan/77c7b02cfafa13b56eabd4447e4d8d28 to your computer and use it in GitHub Desktop.
CI scripts for hybrid mobile apps
#!/bin/bash
# Install homebrew
if ! which -s brew > /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install yarn
if ! which -s yarn > /dev/null; then
curl -o- -L https://yarnpkg.com/install.sh | bash
source ~/.yarn/bin/yarn
fi
# Install nvm
if ! which -s nvm > /dev/null; then
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.nvm/nvm.sh
fi
# Install fastlane
if ! which -s fastlane > /dev/null; then
brew cask install fastlane
fi
# Install cordova
if ! which -s cordova > /dev/null; then
yarn global add cordova@6.5.0
fi
# Install ionic
if ! which -s ionic > /dev/null; then
yarn global add ionic
fi
# Install ios-deploy
if ! which -s ios-deploy > /dev/null; then
yarn global add ios-deploy
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment