Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ PYTHON = python3

# TODO: Extend `validate` to take a directory as argument
SCHEMAS = $(shell find schemas/ -type f -name '*.json')
TESTS = $(shell find tests/ -type f -name '*.json')
TESTS = $(shell find test/ -type f -name '*.json')

all: common test
$(JSONSCHEMA) fmt schemas tests conventions.json tests.json --verbose
$(JSONSCHEMA) fmt schemas test conventions.json tests.json --verbose

common: .always
$(JSONSCHEMA) metaschema schemas conventions.json tests.json --verbose
Expand All @@ -18,10 +18,10 @@ common: .always
./scripts/schemas-tests-mirror.sh

lint: common
$(JSONSCHEMA) fmt schemas tests conventions.json tests.json --verbose --check
$(JSONSCHEMA) fmt schemas test conventions.json tests.json --verbose --check

test: .always
$(JSONSCHEMA) test ./tests
$(JSONSCHEMA) test ./test

generate: .always
$(PYTHON) scripts/generate-iso-currency.py
Expand Down
2 changes: 1 addition & 1 deletion scripts/schemas-tests-mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset

SCHEMAS_DIR="$(pwd)/schemas"
TESTS_DIR="$(pwd)/tests"
TESTS_DIR="$(pwd)/test"
EXIT_CODE=0

find "$SCHEMAS_DIR" -type f -name "*.json" | while IFS= read -r schema_file
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.