Skip to content

Commit 8dbb17c

Browse files
committed
piencrypt shell scripts
1 parent 0842097 commit 8dbb17c

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

Script/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#build package and push it to pypi
2+
SECONDS=0
3+
# declare initial seconds
24
clear
35
cd ..
46
echo "piencrypt: -----> Starting Pie Test..";
@@ -17,7 +19,11 @@ echo "piencrypt: -----> Build successfull"
1719
echo -en '\n';
1820
twine upload dist/*;
1921
echo -en '\n';
20-
echo '---------------------------------------------'
22+
echo "..";
23+
echo '----------------------------------------------------------------------';
2124
echo "piencrypt: -----> Upload Successfull";
2225
echo -en '\n';
26+
# get elapsed time
27+
duration=$SECONDS
28+
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
2329
# cat build.sh

Script/git_push.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SECONDS=0
2+
# declare initial seconds
13
clear
24
cd ..
35
echo "piencrypt: -----> Starting Pie Test..";
@@ -18,6 +20,10 @@ echo "piencrypt: -----> Commit completed";
1820
echo -en '\n';
1921
git push origin master;
2022
echo -en '\n';
21-
echo '---------------------------------------------'
23+
echo "..";
24+
echo '----------------------------------------------------------------------';
2225
echo "piencrypt: -----> Push Successfull";
2326
echo -en '\n';
27+
# get elapsed time
28+
duration=$SECONDS
29+
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."

Script/heroku_push.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SECONDS=0
2+
# declare initial seconds
13
clear
24
cd ..
35
echo "piencrypt: -----> Starting Pie Test..";
@@ -19,7 +21,11 @@ echo "piencrypt: -----> Commit completed";
1921
echo -en '\n';
2022
git push heroku master;
2123
echo -en '\n';
22-
echo '---------------------------------------------'
24+
echo "..";
25+
echo '----------------------------------------------------------------------';
2326
echo "piencrypt: -----> Deployment Successfull";
2427
echo -en '\n';
28+
# get elapsed time
29+
duration=$SECONDS
30+
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
2531
cd ..

Script/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SECONDS=0
2+
# do some work
3+
duration=$SECONDS
4+
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."

0 commit comments

Comments
 (0)