Skip to content

Commit

Permalink
test: execute "bundle update" in grntest only when Gemfile is updated…
Browse files Browse the repository at this point in the history
… by git
  • Loading branch information
Haruka Yoshihara committed Nov 28, 2012
1 parent d947aa4 commit a816e34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/command/run-test.sh
Expand Up @@ -79,7 +79,12 @@ if ! test -d "$grntest_dir"; then
git clone --depth 1 git://github.com/groonga/grntest.git "$grntest_dir"
(cd "$grntest_dir" && bundle install)
else
(cd "$grntest_dir" && git pull && bundle update)
(cd "$grntest_dir" && git pull)
BUNDLE_GEMFILE="$grntest_dir/Gemfile"
export BUNDLE_GEMFILE
if [ "$BUNDLE_GEMFILE" -nt "$BUNDLE_GEMFILE.lock" ]; then
$RUBY -S bundle update
fi
fi

have_targets="false"
Expand Down

0 comments on commit a816e34

Please sign in to comment.