-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheroku_push.sh
More file actions
34 lines (34 loc) · 838 Bytes
/
heroku_push.sh
File metadata and controls
34 lines (34 loc) · 838 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
30
31
32
33
34
SECONDS=0
# declare initial seconds
clear
cd ..
echo "piencrypt: -----> Starting Pie Test..";
echo -en '\n';
pip install --upgrade piencrypt;
echo -en '\n';
cd Test
python pie_test.py;
echo -en '\n';
echo "piencrypt: -----> Test completed"
echo -en '\n';
cd ..
cd web
echo "piencrypt: -----> Tracking files..";
echo -en '\n';
git add .;
echo -en '\n';
read -p "Enter the push reason: " reason
git commit -m "$reason";
echo -en '\n';
echo "piencrypt: -----> Commit completed";
echo -en '\n';
git push heroku master;
echo -en '\n';
echo "..";
echo '----------------------------------------------------------------------';
echo "piencrypt: -----> Deployment Successfull";
echo -en '\n';
# get elapsed time
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
cd ..