-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 909 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
DIR := tests/tmp
PHONY += --install
--install:
rm -rf $(DIR) && mkdir -p $(DIR)
cp tests/composer.json $(DIR)/composer.json
composer --working-dir=$(DIR) install -v
composer --working-dir=$(DIR) require drupal/admin_toolbar -v
composer --working-dir=$(DIR) require drupal/paragraphs:1.16 -v
PHONY += --update
--update:
composer --working-dir=$(DIR) require drupal/paragraphs -v
PHONY += test
test: --install assert --update
PHONY += assert
assert: VENDOR := $(DIR)/vendor
assert:
@[ -f $(VENDOR)/drupal/core/assets/vendor ] || echo "Drupal assets/vendor should not be cleaned!"
@[ ! -f $(VENDOR)/drupal/admin_toolbar/README.md ] || echo "Admin Toolbar README.md not cleaned!"
@[ ! -f $(VENDOR)/paragraphs/modules/paragraphs_type_permissions/tests ] || echo "Paragraphs submodule tests folder not cleaned!"
@[ -f $(VENDOR)/drush/drush/README.md ] || echo "Drush README.md should not be cleaned!"