forked from krobinson395/ECE461Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·48 lines (44 loc) · 1.13 KB
/
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
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
if [ "$1" == "install" ];
then
pip install GitPython
pip install coverage
python3 setup.py
cp -r cloc ./test
npm install typescript
npm install fs
npm install readline
npm install dotenv
npm install @octokit/rest
npm install @octokit/core
npm install @octokit/request
npm install types
npm i --save-dev @types/node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v18.14.0
nvm use v18.14.0
tsc --init
npm install mocha --save-dev
npm install chai @types/chai --save-dev
npm install sinon @types/sinon --save-dev
npm install @types/mocha --save-dev
npm i nyc --save-dev
npm install --save-dev mochawesome
elif [ "$1" == "build" ];
then
tsc src/npmToGithub.ts
tsc src/licAndResp.ts
tsc src/busfactor.ts
elif [ "$1" == "test" ];
then
cd test
python3 -m coverage run -m fileCounterTest > /dev/null 2>&1
python3 -m coverage json > /dev/null 2>&1
python3 parseJSON.py
else
node src/npmToGithub.js $1
python3 fileCounter.py
fi