-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
73 lines (56 loc) · 1.71 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
# Makefile specification
# ----------------------
# make issues - prints link to current phase's issues
issues:
@echo "https://github.com/benrandall/idb/issues"
# make github - prints link to github repo
github:
@echo "https://github.com/benrandall/idb"
# make stories - prints link to current phase's stories
stories:
@echo "https://github.com/benrandall/idb/projects/6"
# make uml - prints link to uml diagram
uml:
@echo "https://benrandall.gitbooks.io/report/content/uml-diagram.html"
# make selenium - runs selenium tests
selenium: source-venv
cd frontend \
&& python guitests.py
yarn-install:
@cd frontend \
&& yarn install
yarn-build-css:
@cd frontend \
&& yarn build-css
# make frontend - runs frontend tests
frontend: yarn-install yarn-build-css
@cd frontend \
&& yarn test
# create and source a virtual environment
create-virtualenv:
@python3 -m venv virtualenv
source-venv: create-virtualenv
@cd virtualenv/bin \
&& source activate
backend-pip-install: source-venv
@cd backend \
&& pip install -r requirements.txt
# make backend - runs backend tests
backend: source-venv backend-pip-install
cd backend \
&& python tests.py
# make website - prints link to a website
website:
@echo "http://www.runescrape.lol/"
# make report - prints link to technical report
report:
@echo "https://benrandall.gitbooks.io/report/content/"
# make apidoc - prints link to api documentation
apidoc:
@echo "https://benrandall.gitbooks.io/api/content/"
# make self - prints link to self critique
self:
@echo "https://benrandall.gitbooks.io/report/content/self-critique.html"
# make other - prints link to other critique
other:
@echo "https://benrandall.gitbooks.io/report/content/other-critique.html"