Last active
February 9, 2018 13:45
-
-
Save onderceylan/77c7b02cfafa13b56eabd4447e4d8d28 to your computer and use it in GitHub Desktop.
CI scripts for hybrid mobile apps
This file contains 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 | |
# 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