@@ -3,33 +3,23 @@ SHELLCHECK = shellcheck
33
44# TODO: Extend `validate` to take a directory as argument
55SCHEMAS = $(shell find schemas/ -type f -name '* .json')
6+ TESTS = $(shell find tests/ -type f -name '* .json')
67
7- all : .always
8- $(JSONSCHEMA ) fmt conventions.json --verbose
9- $(JSONSCHEMA ) metaschema conventions.json --verbose
10- $(JSONSCHEMA ) lint conventions.json --verbose
11- $(JSONSCHEMA ) fmt --verbose
12- $(JSONSCHEMA ) fmt tests --verbose
13- $(JSONSCHEMA ) metaschema --verbose
14- $(JSONSCHEMA ) validate conventions.json --verbose $(SCHEMAS )
15- $(JSONSCHEMA ) lint --verbose
16- $(SHELLCHECK ) scripts/* .sh
17- ./scripts/schemas-tests-mirror.sh
18- $(JSONSCHEMA ) test ./tests --verbose
8+ all : common test
9+ $(JSONSCHEMA ) fmt schemas tests conventions.json tests.json --verbose
1910
20- ci-lint : .always
21- $(JSONSCHEMA ) fmt conventions.json --verbose --check
22- $(JSONSCHEMA ) metaschema conventions.json --verbose
23- $(JSONSCHEMA ) lint conventions.json --verbose
24- $(JSONSCHEMA ) fmt --verbose --check
25- $(JSONSCHEMA ) fmt tests --verbose --check
26- $(JSONSCHEMA ) metaschema --verbose
11+ common : .always
12+ $(JSONSCHEMA ) metaschema schemas conventions.json tests.json --verbose
13+ $(JSONSCHEMA ) lint schemas conventions.json tests.json --verbose
2714 $(JSONSCHEMA ) validate conventions.json --verbose $(SCHEMAS )
28- $(JSONSCHEMA ) lint --verbose
15+ $(JSONSCHEMA ) validate tests.json --verbose $( TESTS )
2916 $(SHELLCHECK ) scripts/* .sh
3017 ./scripts/schemas-tests-mirror.sh
3118
32- ci-test : .always
19+ lint : common
20+ $(JSONSCHEMA ) fmt schemas tests conventions.json tests.json --verbose --check
21+
22+ test : .always
3323 $(JSONSCHEMA ) test ./tests --verbose
3424
3525.always :
0 commit comments