This repository was archived by the owner on Nov 1, 2017. It is now read-only.
File tree 3 files changed +27
-7
lines changed
3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change
1
+ # Helpers
2
+ tap "github/bootstrap"
3
+
4
+ # Ruby
5
+ brew "openssl"
6
+ brew "autoconf"
7
+ brew "rbenv"
8
+ brew "ruby-build"
9
+
10
+ # Node
11
+ brew "nodenv"
12
+ brew "node-build"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
-
3
2
set -e
4
- export CC=gcc
3
+ cd " $( dirname " $0 " ) /.. "
5
4
6
- command -v bundle > /dev/null 2>&1 || { echo >&2 " Bundler required but not found: gem install bundler" ; exit 1; }
5
+ if [ " $( uname -s) " = " Darwin" ] && command -v brew > /dev/null 2>&1 ; then
6
+ echo " ==> Installing Homebrew dependencies…"
7
+ brew update > /dev/null
8
+ brew bundle check & > /dev/null || brew bundle
7
9
8
- echo " ==> Installing gem dependencies…"
10
+ brew bootstrap-rbenv-ruby
11
+ brew bootstrap-nodenv-node
12
+ fi
9
13
14
+ if ! command -v bundle > /dev/null 2>&1 ; then
15
+ echo " Bundler required but not found: gem install bundler" >&2
16
+ exit 1
17
+ fi
18
+
19
+ echo " ==> Installing gem dependencies…"
10
20
if [ " $RACK_ENV " = " production" ]; then
11
21
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
12
22
export BUNDLE_JOBS=4
13
23
bundle install --without development staging test benchmark --path vendor/cache --local --deployment
14
24
else
15
- bundle check --path vendor/cache 2>&1 || {
25
+ bundle check --path vendor/cache 2>&1 || \
16
26
bundle install --path vendor/cache
17
- }
18
27
fi
19
28
20
29
echo " ==> Installing npm dependencies…"
21
-
22
30
if [ " $RACK_ENV " = " production" ]; then
23
31
npm install --production
24
32
else
You can’t perform that action at this time.
0 commit comments