-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
90 lines (66 loc) · 2.1 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
82
83
84
85
86
87
88
89
90
# Makefile specification
# ----------------------
GithubID = TimCoding
RepoName = HomeSweHome
# NEED TO UPDATE THIS BEFORE WE SUBMIT (last updated 4/19 at 5:23pm)
SHA = 555101887ece2500a9d14a54b0c1203eebf21663
# Do not confuse with directories
.PHONY: frontend backend setup-backend setup-frontend build-frontend
run: build-frontend setup-backend
@(python3 run.py)
# need to run with sudo
run-prod: build-frontend setup-backend
@(./runprod.sh)
setup-backend:
@(python3 setup.py install)
setup-frontend:
@(cd react_app; npm install)
build-frontend: setup-frontend
@(cd react_app; npm run build)
githubid:
@echo "${GithubID}"
reponame:
@echo "${RepoName}"
sha:
@echo "${SHA}"
# The Makefile should be present in the root of the project.
# There should be the following commands written:
# 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/${GithubID}/${RepoName}/projects/7"
# make uml - prints link to uml diagram
uml:
@echo "https://epicdavi.gitbooks.io/report/uml.html"
# make selenium - runs selenium tests
selenium: build-frontend
python3 frontend/guitests.py
# make frontend - runs frontend tests
frontend: build-frontend
@(cd react_app; npm run test)
# make backend - runs backend tests
backend:
python3 -m unittest server_tests
# make postman - runs postman tests
postman:
newman run Postman.json
# make website - prints link to a website
website:
@echo "http://homeswehome.me/"
# make report - prints link to technical report
report:
@echo "http://epicdavi.gitbooks.io/report/"
# make apidoc - prints link to api documentation
apidoc:
@echo "http://epicdavi.gitbooks.io/api/"
# make self - prints link to self critique
self:
@echo "http://epicdavi.gitbooks.io/report/self-critique.html"
# make other - prints link to other critique
other:
@echo "http://epicdavi.gitbooks.io/report/other-critique.html"