forked from simedis/godot-blender-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (24 loc) · 729 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
PYLINT = pylint3
PEP8 = pep8
BLENDER = blender
GODOT = godot
.DEFAULT_GOAL := all
pylint:
$(PYLINT) io_scene_godot
pep8:
$(PEP8) io_scene_godot
export-blends:
mkdir -p ./tests/godot_project/exports/
rm -rf ./tests/godot_project/.import # Ensure we don't have any hangover data
$(BLENDER) -b --python ./tests/export_test_scenes.py
test-import: export-blends
$(GODOT) -e -q --path tests/ > log.txt 2>&1
@cat log.txt
! grep -q "ERROR" log.txt
update-examples:
mkdir -p tests/reference_exports
cp tests/godot_project/exports/*.escn tests/reference_exports
compare: export-blends
diff -x "*.escn.import" -r tests/godot_project/exports/ tests/reference_exports/
style-test: pep8 pylint
all: compare style-test