43 lines
722 B
Bash
Executable File
43 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "StackTach dev env build script"
|
|
|
|
SOURCE_DIR=git
|
|
VENV_DIR=.venv
|
|
|
|
if [[ -f local.sh ]]; then
|
|
source local.sh
|
|
fi
|
|
|
|
if [[ ! -d "$SOURCE_DIR" ]]; then
|
|
mkdir $SOURCE_DIR
|
|
fi
|
|
|
|
if [[ ! -d "$VENV_DIR" ]]; then
|
|
virtualenv $VENV_DIR
|
|
fi
|
|
|
|
cd $SOURCE_DIR
|
|
for file in StackTach/shoebox StackTach/simport StackTach/notigen \
|
|
StackTach/notabene StackTach/notification_utils rackerlabs/yagi \
|
|
StackTach/stackdistiller
|
|
do
|
|
git clone https://github.com/$file
|
|
done
|
|
cd ..
|
|
|
|
source ./$VENV_DIR/bin/activate
|
|
|
|
# Some extra required libs ...
|
|
pip install librabbitmq
|
|
|
|
for file in $SOURCE_DIR/*
|
|
do
|
|
cd $file
|
|
rm -rf build dist
|
|
python setup.py install
|
|
cd ../..
|
|
done
|
|
|
|
screen -c screenrc
|