forked from Tuxemon/Tuxemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (37 loc) · 966 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
# Schemas to generate with `make schemas`
SCHEMAS = schemas/economy-schema.json \
schemas/encounter-schema.json \
schemas/environment-schema.json \
schemas/inventory-schema.json \
schemas/item-schema.json \
schemas/monster-schema.json \
schemas/music-schema.json \
schemas/npc-schema.json \
schemas/sound-schema.json \
schemas/technique-schema.json
# Default target to run when `make` is called by itself
.PHONY: default
default: run
# Generate JSON schemas for all DB models
.PHONY: schemas
schemas: $(SCHEMAS)
$(SCHEMAS) &: tuxemon/db.py
mkdir -p schemas
PYTHONPATH=. python scripts/schema.py --generate
# Validate all JSON data in db
.PHONY: validate
validate:
PYTHONPATH=. python scripts/schema.py --validate
# Install dependencies
.PHONY: setup
setup:
pip install -U -r ./requirements.txt
# Run the game
.PHONY: run
run:
python ./run_tuxemon.py
# Run tests
.PHONY: test
test:
pip install pytest
PYTHONPATH=. pytest tests