Skip to content

Commit

Permalink
[4.3] add changed_json and validate only changed (#6635)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Oct 2, 2020
1 parent cd7814c commit b9fb7f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ BASE_BRANCH := $(shell cat $(ROOT)/.base_branch)

CHANGED ?= $(shell git --no-pager diff --name-only HEAD $(BASE_BRANCH) -- applications core scripts)
CHANGED_SWAGGER := $(shell git --no-pager diff --name-only HEAD $(BASE_BRANCH) -- applications/crossbar/priv/api/swagger.json)
CHANGED_JSON=$(filter %.json,$(CHANGED))

# You can override this when calling make, e.g. make JOBS=1
# to prevent parallel builds, or make JOBS="8".
Expand Down Expand Up @@ -300,7 +301,7 @@ validate-swagger:
@$(ROOT)/scripts/validate-swagger.sh

validate-js:
@$(ROOT)/scripts/validate-js.sh $(shell find $(ROOT)/{core,applications}/*/priv/**/* -name *.json)
@$(ROOT)/scripts/validate-js.sh $(CHANGED_JS)

sdks:
@$(ROOT)/scripts/make-swag.sh
Expand Down

0 comments on commit b9fb7f6

Please sign in to comment.