Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
Sync changes from upstream repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubot committed Feb 26, 2016
1 parent a8d460c commit 1a09e82
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
12 changes: 12 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Helpers
tap "github/bootstrap"

# Ruby
brew "openssl"
brew "autoconf"
brew "rbenv"
brew "ruby-build"

# Node
brew "nodenv"
brew "node-build"
22 changes: 15 additions & 7 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
#!/bin/sh

set -e
export CC=gcc
cd "$(dirname "$0")/.."

command -v bundle >/dev/null 2>&1 || { echo >&2 "Bundler required but not found: gem install bundler"; exit 1; }
if [ "$(uname -s)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
echo "==> Installing Homebrew dependencies…"
brew update >/dev/null
brew bundle check &>/dev/null || brew bundle

echo "==> Installing gem dependencies…"
brew bootstrap-rbenv-ruby
brew bootstrap-nodenv-node
fi

if ! command -v bundle >/dev/null 2>&1; then
echo "Bundler required but not found: gem install bundler" >&2
exit 1
fi

echo "==> Installing gem dependencies…"
if [ "$RACK_ENV" = "production" ]; then
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
export BUNDLE_JOBS=4
bundle install --without development staging test benchmark --path vendor/cache --local --deployment
else
bundle check --path vendor/cache 2>&1 || {
bundle check --path vendor/cache 2>&1 || \
bundle install --path vendor/cache
}
fi

echo "==> Installing npm dependencies…"

if [ "$RACK_ENV" = "production" ]; then
npm install --production
else
Expand Down
Binary file removed vendor/cache/html-proofer-2.6.2.gem
Binary file not shown.

0 comments on commit 1a09e82

Please sign in to comment.