-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from basho/refactor/deploy-api-wip
Major overhaul of the internals of riak_test
- Loading branch information
Showing
26 changed files
with
2,213 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bail out if things go south | ||
# just bail out if things go south | ||
set -e | ||
|
||
: ${RT_DEST_DIR:="$HOME/rt/riak"} | ||
|
||
echo "Making $(pwd) the current release:" | ||
echo "Making $(pwd) a tagged release:" | ||
cwd=$(pwd) | ||
echo -n " - Determining version: " | ||
if [ -f $cwd/dependency_manifest.git ]; then | ||
VERSION=`cat $cwd/dependency_manifest.git | awk '/^-/ { print $NF }'` | ||
else | ||
VERSION="$(git describe --tags)-$(git branch | awk '/\*/ {print $2}')" | ||
VERSION=`git describe --tags | awk '{sub(/riak-/,"",$0);print}'` | ||
fi | ||
echo $VERSION | ||
cd $RT_DEST_DIR | ||
echo " - Resetting existing $RT_DEST_DIR" | ||
git reset HEAD --hard > /dev/null | ||
git clean -fd > /dev/null | ||
echo " - Removing and recreating $RT_DEST_DIR/current" | ||
rm -rf $RT_DEST_DIR/current | ||
mkdir $RT_DEST_DIR/current | ||
git reset HEAD --hard > /dev/null 2>&1 | ||
git clean -fd > /dev/null 2>&1 | ||
echo " - Removing and recreating $RT_DEST_DIR/$VERSION" | ||
rm -rf $RT_DEST_DIR/$VERSION | ||
mkdir $RT_DEST_DIR/$VERSION | ||
cd $cwd | ||
echo " - Copying devrel to $RT_DEST_DIR/current" | ||
cp -p -P -R dev $RT_DEST_DIR/current | ||
echo " - Writing $RT_DEST_DIR/current/VERSION" | ||
echo -n $VERSION > $RT_DEST_DIR/current/VERSION | ||
echo " - Copying devrel to $RT_DEST_DIR/$VERSION" | ||
cd dev | ||
for i in `ls`; do cp -p -P -R $i $RT_DEST_DIR/$VERSION/; done | ||
echo " - Writing $RT_DEST_DIR/$VERSION/VERSION" | ||
echo -n $VERSION > $RT_DEST_DIR/$VERSION/VERSION | ||
cd $RT_DEST_DIR | ||
echo " - Reinitializing git state" | ||
git add . | ||
git commit -a -m "riak_test init" --amend > /dev/null | ||
git add -f . | ||
git commit -a -m "riak_test init" --amend > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
|
||
# just bail out if things go south | ||
set -e | ||
|
||
: ${RT_DEST_DIR:="$HOME/rt/riak"} | ||
|
||
cwd=$(pwd) | ||
echo -n " - Determining version: " | ||
if [ -z "${VERSION+xxx}" ] || ([ -z "$VERSION" ] && [ "${VERSION+xxx}" = "xxx" ]); then | ||
if [ -f $cwd/dependency_manifest.git ]; then | ||
VERSION=`cat $cwd/dependency_manifest.git | awk '/^-/ { print $NF }'` | ||
else | ||
echo "Making $(pwd) a tagged release:" | ||
VERSION=`git describe --tags | awk '{sub(/riak-/,"",$0);print}'` | ||
fi | ||
fi | ||
echo $VERSION | ||
if [ ! -d $RT_DEST_DIR ]; then | ||
mkdir $RT_DEST_DIR | ||
fi | ||
cd $RT_DEST_DIR | ||
if [ -d ".git" ]; then | ||
echo " - Resetting existing $RT_DEST_DIR" | ||
git reset HEAD --hard > /dev/null 2>&1 | ||
git clean -fd > /dev/null 2>&1 | ||
fi | ||
echo " - Removing and recreating $RT_DEST_DIR/$VERSION" | ||
rm -rf $RT_DEST_DIR/$VERSION | ||
mkdir $RT_DEST_DIR/$VERSION | ||
cd $cwd | ||
echo " - Copying devrel to $RT_DEST_DIR/$VERSION" | ||
if [ ! -d "dev" ]; then | ||
echo "You need to run \"make devrel\" or \"make stagedevrel\" first" | ||
exit 1 | ||
fi | ||
cd dev | ||
for i in `ls`; do cp -p -P -R $i $RT_DEST_DIR/$VERSION/; done | ||
echo " - Writing $RT_DEST_DIR/$VERSION/VERSION" | ||
echo -n $VERSION > $RT_DEST_DIR/$VERSION/VERSION | ||
cd $RT_DEST_DIR | ||
if [ -d ".git" ]; then | ||
echo " - Reinitializing git state" | ||
git add -f . | ||
git commit -a -m "riak_test init" --amend > /dev/null 2>&1 | ||
else | ||
git init | ||
|
||
## Some versions of git and/or OS require these fields | ||
git config user.name "Riak Test" | ||
git config user.email "[email protected]" | ||
|
||
git add . | ||
git commit -a -m "riak_test init" > /dev/null | ||
echo " - Successfully completed initial git commit of $RT_DEST_DIR" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ | |
{riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {branch, "master"}}}, | ||
{riakhttpc, ".*", {git, "git://github.com/basho/riak-erlang-http-client", {branch, "master"}}}, | ||
{kvc, "1.3.0", {git, "https://github.com/etrepum/kvc", {tag, "v1.3.0"}}}, | ||
{druuid, ".*", {git, "git://github.com/kellymclaughlin/druuid.git", {tag, "0.2"}}} | ||
{druuid, ".*", {git, "git://github.com/kellymclaughlin/druuid.git", {tag, "0.2"}}}, | ||
{riak_cli, ".*", {git, "[email protected]:basho/riak_cli", {branch, "master"}}} | ||
]}. | ||
|
||
{escript_incl_apps, [goldrush, lager, getopt, riakhttpc, riakc, ibrowse, mochiweb, kvc]}. | ||
|
Oops, something went wrong.