You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ TEST_DB_PASS = root
12
12
TEST_DB_HOST = db
13
13
WP_TEST_VERSION ?= latest
14
14
15
-
.PHONY: help build up down restart logs shell composer-install wp-install lint lint-fix lint-php translations integration-setup integration test package clean
15
+
.PHONY: help build up down restart logs shell composer-install wp-install lint lint-fix lint-php translations integration-setup integration test package package-verify package-smoke clean
16
16
17
17
help:
18
18
@echo "Targets:"
@@ -32,7 +32,9 @@ help:
32
32
@echo " integration-setup Install WordPress test suite inside containers"
33
33
@echo " integration Run integration tests"
34
34
@echo " test Run unit and integration tests"
35
-
@echo " package Build release zip via prerelease workflow logic"
35
+
@echo " package Build and inspect the release ZIP and checksum"
36
+
@echo " package-verify Inspect the existing release ZIP and checksum"
37
+
@echo " package-smoke Install and test the release ZIP in clean WordPress"
36
38
37
39
build:
38
40
$(COMPOSE) build $(PHP_SERVICE)
@@ -84,9 +86,14 @@ integration:
84
86
test: unit integration
85
87
86
88
package:
87
-
$(COMPOSE) run --rm $(PHP_SERVICE) bash -lc 'mkdir -p /tmp/release/basicrum && rsync -rc --exclude-from=/workspace/.distignore /workspace/ /tmp/release/basicrum/ --delete --delete-excluded && cd /tmp/release && zip -r /workspace/basicrum.zip basicrum'
89
+
$(COMPOSE) run --rm --no-deps -w /repo $(PHP_SERVICE) sh /tools/build-release.sh /repo/$(PLUGIN_DIR) /repo/release
90
+
91
+
package-verify:
92
+
$(COMPOSE) run --rm --no-deps -w /repo $(PHP_SERVICE) sh /tools/verify-release.sh /repo/release/basicrum.zip
93
+
94
+
package-smoke: package
95
+
sh tools/smoke-test-release.sh release/basicrum.zip
0 commit comments