forked from zmid26/project_461
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun
executable file
·37 lines (35 loc) · 1008 Bytes
/
run
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
37
#!/usr/bin/env bash
if [ "$1" == 'install' ]; then
pip3 install GitPython
pip3 install PyGithub
pip3 install requests
pip3 install flask
pip3 install "cloud-sql-python-connector[pymysql]"
pip3 install connexion[swagger-ui]
python3 -m pip install PyMySQL
pip install SQLAlchemy
echo "Install Complete!"
elif [ "$1" == 'build' ]; then
cargo build;
elif [ "$1" == 'clean' ]; then
rm log_file.txt;
rm -r -f target;
cd local_cloning && rm -r -f cloned_repos;
cd ../output && rm ./*.txt;
cd ../log && rm ./*.txt;
elif [ "$1" == 'tempclean' ]; then
rm testfile.txt;
cd output && rm ./*.txt;
cd ../log && rm ./*.txt;
elif [ "$1" == 'test' ]; then
python3 test_suite/test_suite_script.py
elif [ "$1" == 'score' ]; then
./target/debug/main "$@" -s;
elif [ "$1" == 'showscore' ]; then
./target/debug/main "$@" -p;
elif [ "$1" == 'upload' ]; then
./target/debug/main "$@" -u;
else
echo "Invalid Input";
exit 5
fi