forked from BrickSchema/Brick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 1006 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
.PHONY: format
Brick.ttl: bricksrc/*.py bricksrc/*.ttl bricksrc/definitions.csv generate_brick.py shacl/* support/*.ttl
mkdir -p extensions
python tools/sort_definitions.py bricksrc/definitions.csv
python generate_brick.py
cd shacl && python generate_shacl.py
shacl/BrickShape.ttl: bricksrc/*.py generate_brick.py shacl/generate_shacl.py
cd shacl && python generate_shacl.py
clean:
rm Brick.ttl Brick+extensions.ttl
format:
black generate_brick.py
black shacl/
black bricksrc/
black tests/
black tools/
test: Brick.ttl shacl/BrickShape.ttl
pytest -s -vvvv -n auto tests
cd tests/integration && bash run_integration_tests.sh
quantity-test: Brick.ttl
pytest -s -vvvv tests/test_quantities.py
inference-test: Brick.ttl
pytest -s -vvvv tests/test_inference.py
hierarchy-test: Brick.ttl
pytest -s -vvvv tests/test_hierarchy_inference.py
measures-test: Brick.ttl
pytest -s -vvvv tests/test_measures_inference.py
matches-test: Brick.ttl
pytest -s -vvvv tests/test_matching_classes.py