-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (41 loc) · 1.03 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
BLUE='\033[0;34m'
NC='\033[0m' # No Color
setup-env:
pipenv install
pipenv shell
evaluate:
@ if [ "$(which python)" != *"virtualenvs"* ]; then \
make setup-env; \
fi
install:
echo -e "${BLUE}Installing Python requirements..${NC}";
pipenv install;
echo -e "${BLUE}Installing Nodejs requirements..${NC}";
cd frontend npm install; cd ..;
echo -e "${BLUE}All done..${NC}";
.PHONY: install
build:
cd frontend; npm run build
@python themes/loadThemes.py
.PHONY: build
start_python:
@pipenv run run
.PHONY: start_python
start_webapp:
cd frontend; PORT=80 node build/index.js
.PHONY: start_webapp
run:
make -j 2 start_python start_webapp
.PHONY: run
test:
@pipenv run test
cd libdigitaldash/;cargo test;
.PHONY: test
lint:
@echo "\n${BLUE}Running Pylint against source and test files...${NC}\n"
@pylint --rcfile=setup.cfg **/*.py || true
@echo "\n${BLUE}Running Bandit against source files...${NC}\n"
@bandit -r --ini setup.cfg || true
clean:
rm -rf .pytest_cache .coverage .pytest_cache coverage.xml
.PHONY: clean test