forked from paris-saclay-cds/ramp-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 950 Bytes
/
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
PYTHON ?= python
PYTEST ?= pytest
all: clean inplace test
clean:
cd ramp-frontend && $(PYTHON) setup.py clean && cd ..
cd ramp-database && $(PYTHON) setup.py clean && cd ..
cd ramp-engine && $(PYTHON) setup.py clean && cd ..
cd ramp-utils && $(PYTHON) setup.py clean && cd ..
install:
cd ramp-frontend && pip install . && cd ..
cd ramp-database && pip install . && cd ..
cd ramp-engine && pip install . && cd ..
cd ramp-utils && pip install . && cd ..
in: inplace # just a shortcut
inplace:
cd ramp-frontend && pip install -e . && cd ..
cd ramp-database && pip install -e . && cd ..
cd ramp-engine && pip install -e . && cd ..
cd ramp-utils && pip install -e . && cd ..
test-all:
$(PYTEST) -vsl .
test: test-all
test-db:
$(PYTEST) -vsl ramp-database/
test-engine:
$(PYTEST) -vsl ramp-engine/
test-frontend:
$(PYTEST) -vsl ramp-frontend/
code-analysis:
flake8 . --ignore=E501,E211,E265 | grep -v __init__ | grep -v external