-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·60 lines (53 loc) · 1.25 KB
/
run.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# /bin/bash
# Usage: ./run.sh
getLatest() {
# get the latest version of the code
echo "Pulling latest version of code from GitHub"
git pull
echo ""
}
printBranchStatus() {
# print the current branch
echo "Current branch: $(git branch --show-current)"
echo ""
}
printVersion() {
# print the current version
echo "Current version: $(cat version.txt)"
echo ""
}
# checkDependencies() {
# # check that dependencies are installed
# echo "Checking dependencies"
# if ! command -v python &> /dev/null
# then
# echo "Python could not be found. Download it from https://www.python.org/downloads/"
# exit
# fi
# if ! command -v pip &> /dev/null
# then
# echo "Pip could not be found. Download it from https://pip.pypa.io/en/stable/installation/ or run 'python -m ensurepip' in a terminal"
# exit
# fi
# pip install pygame --pre --quiet
# pip install -r requirements.txt --quiet
# echo ""
# }
runTests() {
# run tests
echo "Running tests"
python3 -m pytest
echo ""
}
startProgram() {
# start program
echo "Starting program"
python3 src/fishE.py
}
# main
getLatest
printBranchStatus
printVersion
# checkDependencies
runTests
startProgram