From bfc2a36df4105663a86423db690d269595eb07fa Mon Sep 17 00:00:00 2001 From: Scott Comer Date: Mon, 17 Mar 2014 12:53:06 -0500 Subject: [PATCH] a better version of update for scott --- .gitignore | 1 - update2 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100755 update2 diff --git a/.gitignore b/.gitignore index a1b1f7199..bb409f447 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ HTML .DS_Store coverage -update2 diff --git a/update2 b/update2 new file mode 100755 index 000000000..2914aa0ca --- /dev/null +++ b/update2 @@ -0,0 +1,58 @@ +#!/bin/bash + +set -e + +echo "" +echo "BUILDING DATABASE" +echo "" +pushd db +./build +popd + +echo "" +echo "BUILDING PROTOCOL BUFFERS" +echo "" +pushd pb +./build +popd + +echo "" +echo "UPDATING DATABASE" +echo "" +pushd ruby +bundle install +./migrate.sh +popd + +echo "" +echo "UPDATING WEB" +echo "" +pushd web +bundle install +popd + +echo "" +echo "UPDATING WEBSOCKET-GATEWAY" +echo "" +pushd websocket-gateway +bundle install +popd + +echo "" +echo "RUN TESTS" +echo "" + +pushd ruby +bundle exec rspec +popd + +pushd web +bundle exec rspec +popd + +pushd websocket-gateway +bundle exec rspec +popd + +echo "" +echo "SUCCESS"