Last active
March 20, 2019 14:49
-
-
Save Jei/d96f42aae596f850c394ae3790b5b1b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
## | |
# Author: Andrea Jonus <[email protected]> | |
# Version: 0.3 | |
# Description: Setup the MacOS build environment for a Titanium project. Run this script once for every machine, copy the generated ssh public key and add it to GitLab. | |
## | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install needed packages | |
brew install curl --force | |
brew install wget --with-iri | |
brew install git | |
brew install node@8 | |
brew link node@8 --force | |
brew install unzip | |
# Install Titanium CLI and Alloy | |
npm install -g appcelerator titanium alloy tiapp-composer | |
npm install -g tn --unsafe-perm | |
# Install Java 8 | |
brew tap caskroom/versions | |
brew cask install java8 | |
# Install GitLab Runner | |
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64 | |
sudo chmod +x /usr/local/bin/gitlab-runner | |
gitlab-runner register | |
gitlab-runner install | |
gitlab-runner start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment