From b9eacfefc8f72be9b63c21e1d0f8c61c63787a07 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 18 Dec 2014 12:11:51 -0500 Subject: [PATCH] Add script/bootstrap This just runs Bundler with the right options. Maybe it will do more in the future, like update submodules. --- README.md | 2 +- script/bootstrap | 8 ++++++++ script/cibuild | 7 ++++--- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 script/bootstrap diff --git a/README.md b/README.md index 5eaa2f20..cf36d599 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ But for development you are going to want to checkout out the source. To get it, git clone https://github.com/github/linguist.git cd linguist/ - bundle install + script/bootstrap To run the tests: diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 00000000..ec97a080 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +cd "$(dirname "$0")/.." + +bundle check --path vendor/gems > /dev/null 2>&1 || \ + bundle install --local --path vendor/gems diff --git a/script/cibuild b/script/cibuild index 4dbcf970..62cd4242 100755 --- a/script/cibuild +++ b/script/cibuild @@ -1,4 +1,7 @@ #!/bin/sh + +set -e + if [ -d /usr/share/rbenv/shims ]; then export PATH=/usr/share/rbenv/shims:$PATH export RBENV_VERSION=2.1.2-github @@ -11,11 +14,9 @@ ruby -v bundle -v set +x -mkdir -p ./vendor/gems - # Clean out any unversioned files git clean -fd -bundle install --local --path ./vendor/gems +script/bootstrap bundle exec rake samples bundle exec rake