forked from GDGVIT/gdginfo-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (33 loc) · 1.13 KB
/
Makefile
File metadata and controls
39 lines (33 loc) · 1.13 KB
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
.PHONY: dep
dep:
apt-get install libcurl4-gnutls-dev python-setuptools -y
wget -O gitinspector.deb https://github.com/ejwa/gitinspector/releases/download/v0.4.3/gitinspector_0.4.3-1_all.deb && dpkg -i gitinspector.deb
pip3 install -r requirements.txt # install dependancies
chmod +x app # add file permission to execute
.PHONY: dev
dev:
sudo apt install python3-pip # install python3 pip
pip install --upgrade autopep8
pip3 install -r requirements.txt # install dependancies
chmod +x app # add file permission to execute
.PHONY: docs
docs:
@echo "Generating docs"
sudo npm i apidoc -g # install apidoc
apidoc -i routes -o docs # create docs
.PHONY: build
build:
docker image build -t angadsharma1016/dscinfo-backend .
.PHONY: heroku-release
heroku-release:
heroku container:push web
heroku container:release web
.PHONY: clean
clean:
pip3 uninstall -r requirements.txt # Uninstall dependancies
find . -name "*pyc" -type f -delete # Delete .pyc files
.PHONY: lint
lint:
autopep8 --in-place --aggressive --aggressive app
autopep8 --in-place --aggressive --aggressive utility/*.py
autopep8 --in-place --aggressive --aggressive routes/*.py