-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-update.sh
38 lines (35 loc) · 1.18 KB
/
dev-update.sh
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
30
31
32
33
34
35
36
#!/bin/bash
# for testing current availalable branch thru dev.
# make sure your not inside `hummingbot/` folder
# usage: wget https://raw.githubusercontent.com/PtrckM/hummingbot-support/master/dev-update.sh
# chmod a+x dev-update.sh
# ./dev-update.sh
echo -ne "\n[*] - setting up configurations...\n"
export CONDAPATH="$(pwd)/miniconda3"
export PYTHON="$(pwd)/miniconda3/envs/hummingbot/bin/python3"
export hummingbotPath="$(pwd)/hummingbot"
echo -ne "\n[*] - deactivating conda hummingbot...\n"
${CONDAPATH}/bin/deactivate
${CONDAPATH}/bin/deactivate
${CONDAPATH}/bin/deactivate
${CONDAPATH}/bin/activate
${CONDAPATH}/bin/activate hummingbot
${CONDAPATH}/bin/deactivate
cd $hummingbotPath
echo -ne "\n[*] - removing old environments...\n"
rm -rf $(pwd)/miniconda3/envs/hummingbot
echo -ne "\n[*] - uninstalling...\n"
./uninstall
echo -ne "\n[*] - housekeeping...\n"
./clean
echo -ne "\n[*] - downloading development...\n"
git pull origin development
echo -ne "\n[*] - switching...\n"
git fetch origin
echo -ne "\n[*] - installing...\n"
./install
${CONDAPATH}/bin/activate hummingbot
echo -ne "\n[*] - compiling...\n"
./compile
echo -ne "\n[*] - starting...\n"
${PYTHON} bin/hummingbot.py