NOTE: At the moment, this script will not work when run by itself. It has been modified to work with an OS X companion app. To run as a stanalone script, please check out commit: ce4f529d9ee09725c529dfb5fafd046c3f064c59.
A bash script to quickly and easily bootstrap a well-setup programming environment. It assumes a fresh install of OS X 10.9 (Mavericks) or OS X 10.10 (Yosemite). Any software already installed will be skipped.
- Flatiron School's standard
.bash_profile
, which includes case-insensitive auto completion, a nice prompt with git branch awareness, and many useful shortcuts. - Homebrew
- Git
- SQlite3
- RVM, Ruby 2.2.* and their dependencies
- The Learn gem and its dependencies
- Sublime Text 3 with Package Control, Solarized Theme, and proper tab defaults
- Sensible
.gitconfig
,.gitignore
,.gemrc
, and.irbrc
files - SSH Key for GitHub
- A simple directory structure for well-organized code
- Google Chrome
- Know your admin password (you'll need to enter it once when the script first runs)
- Know your GitHub username
- Know the email address associated with your GitHub account
- A personal access api token for GitHub. You can create one here: https://github.com/settings/tokens/new. The name doesn't matter. You MUST select the
write:public_key
scope. - You MUST to have pre-installed Xcode, accepted its license, and have the Command Line Tools.
- You'll need to run this script from an account with admin status. (DO NOT prepend
sudo
to the command below.) - When the script first runs, you'll need to enter your admin password once for Homebrew to install and again for Sublime's symlink.
- During installation, Sublime Text will open for a few seconds and then close automatically. Do not close it yourself. This step is required for some important directories to be created.
curl -L "https://raw.githubusercontent.com/flatiron-school/environmentalizer/master/runner.sh" | bash
Environmentalizer utilizes Bats (Bash Automated Testing System) for testing.
$ git clone https://github.com/sstephenson/bats
$ cd bats
$ ./install.sh /usr/local
- Run tests with
$ bats test
- Alternatively, run
$ bin/test
- Add all test files to the
test
directory - Test files should have the
.bats
extension - All files need the
#!/usr/bin/env bats
shebang at the top - See a sample in
test/sample.bats
- For more documentation, visit the (Bats Readme)[https://github.com/sstephenson/bats/blob/master/README.md]
- Extract 'check if file exists and if it has this content' logic into reusable function
- Write tests