Skip to content

Commit

Permalink
Merge pull request #69 from jperon-skilld/master
Browse files Browse the repository at this point in the history
Adding make target cinsp (for config_inspector) and meta target insp
  • Loading branch information
David Ferlay authored Apr 10, 2019
2 parents a743db0 + 9c35e09 commit f921d7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Add utility functions and scripts to the container
include scripts/makefile/*.mk

.PHONY: all provision si exec exec0 down clean dev info phpcs phpcbf drush check
.PHONY: all provision si exec exec0 down clean dev info phpcs phpcbf drush cinsp
.DEFAULT_GOAL := help

# https://stackoverflow.com/a/6273809/1826109
Expand Down Expand Up @@ -150,3 +150,12 @@ phpcs:
## Fix codebase according to Drupal standards https://www.drupal.org/docs/develop/standards
phpcbf:
@$(call phpcsexec, phpcbf)

cinsp:
@echo "Config schema validation..."
@$(call php, drush -y en config_inspector)
@$(eval SCHEMA_ERRORS = $(shell docker-compose exec -T --user $(CUID):$(CGID) php drush inspect_config --only-error))
@$(call php, drush -y pmu config_inspector)
@if [ ! -z "$(SCHEMA_ERRORS)" ]; then echo "Error(s) in config schemas"; exit 1; fi

insp: | cinsp phpcs
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"drupal-composer/drupal-scaffold": "^2.5",
"drupal/admin_toolbar": "^1",
"drupal/components": "^1",
"drupal/config_inspector": "^1.0@beta",
"drupal/config_installer": "^1",
"drupal/core": "^8.6.7",
"drupal/default_content": "^1",
Expand Down

0 comments on commit f921d7b

Please sign in to comment.