forked from gowalla-archive/chronologic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-build
More file actions
executable file
·29 lines (19 loc) · 749 Bytes
/
ci-build
File metadata and controls
executable file
·29 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
desired_ruby=ree-1.8.7-2011.03
gemset_name=chronologic
# enable rvm for ruby interpreter switching
source $HOME/.rvm/scripts/rvm || exit 1
# show available (installed) rubies (for debugging)
#rvm list
# install our chosen ruby if necessary
rvm list | grep $desired_ruby > /dev/null || rvm install $desired_ruby || exit 1
# use our ruby with a custom gemset
rvm use ${desired_ruby}@${gemset_name} --create
# install bundler if necessary
gem list --local bundler | grep bundler || gem install bundler || exit 1
# debugging info
echo USER=$USER && ruby --version && which ruby && which bundle
# conditionally install project gems from Gemfile
bundle check || bundle install || exit 1
rake db:migrate
CASSANDRA=1 rake test