-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (37 loc) · 888 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
41
42
43
44
45
46
47
.PHONY: install
install: clean
pip install .
.PHONY: install-dev
install-dev: clean
pip install -r requirements.txt
pip install -e .
.PHONY: node-installed
node-installed:
cd tests/arbor-harness && node --version
.PHONY: harness
harness:
[ -d tests/arbor-harness/data ] || git submodules --init --recursive
.PHONY: harness-install
harness-install: harness node-installed
cd tests/arbor-harness && [ -d node_modules ] || npm install
.PHONY: harness-populate
harness-populate: harness-install
cd tests/arbor-harness && [ -d data/3034133/results ] || npm start
.PHONY: test
test: harness-populate
pytest -v
.PHONY: test-quick
test-quick: harness-populate
pytest -v --skipslow
.PHONY: fmt
fmt:
black arbor tests setup.py
.PHONY: lint
lint:
flake8 arbor tests
black --check arbor tests setup.py
.PHONY: clean
clean:
rm -rf .eggs
rm -rf .pytest_cache
rm -rf *.egg-info