-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
82 lines (61 loc) · 2.05 KB
/
makefile
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
GithubID = WeTheSWEople
RepoName = SWEThePeople
SHA = 09724de6bf51395efa3b3cfe834174912282deaa
githubid:
@echo "${GithubID}"
reponame:
@echo "${RepoName}"
sha:
@echo "${SHA}"
# make github - prints link to github repo
github:
@echo "http://www.github.com/${GithubID}/${RepoName}"
# make issues - prints link to current phase's issues
issues:
@echo "http://www.github.com/${GithubID}/${RepoName}/issues"
# make stories - prints link to current phase's stories
stories:
@echo "https://github.com/WeTheSWEople/SWEThePeople/labels?utf8=%E2%9C%93&q=story"
# make uml - prints link to uml diagram
uml:
@echo "http://www.github.com/${GithubID}/${RepoName}/blob/${SHA}/UML/models.png"
# make selenium - runs selenium tests
# You will need Firefox installed along with gecko driver in order to run selenium test
selenium:
- cd frontend && pip2.7 install -r requirements.txt
cd frontend && python2.7 guitests.py
# make frontend - runs frontend tests
frontend: FORCE
cd frontend && npm install
cd frontend && npm test
# make backend - runs backend tests
# You will need to export environment variables (db credentials) to run backend target - provided in the turn in JSON
backend: FORCE
@echo "Make sure to export environment variables"
- cd backend && pip2.7 install -r requirements.txt
cd backend && python tests.py
# make postman - runs postman tests
postman:
- npm install -g newman
newman run Postman.json
# make website - prints link to a website
website:
@echo "http://www.swethepeople.me/"
# make report - prints link to technical report
report:
@echo "https://wethesweople.gitbooks.io/report/"
# make apidoc - prints link to api documentation
apidoc:
@echo "https://wethesweople.gitbooks.io/api/"
# make self - prints link to self critique
self:
@echo "https://wethesweople.gitbooks.io/report/self-critique.html"
# make other - prints link to other critique
other:
@echo "https://wethesweople.gitbooks.io/report/other-critique.html"
# setup
setup:
cd frontend && make setup
cd backend && make setup
npm install -g newman
FORCE: ;