aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2023-10-06 22:01:38 -0700
committerGitHub <noreply@github.com>2023-10-06 22:01:38 -0700
commit791346cd3a331b7a6b949c69e7680f8dc389d3a3 (patch)
treea4bcc4f8423f4e9e67f41643bb4128630aa30ad1 /Makefile
parent35f72f6fbe42115202a43be61a07805b3854b0d2 (diff)
Fix brittany formatter & misc improvements (#222)
* Fix brittany installation, needed the `--reorder-goals` argument to be added so that a version that was not the latest version could be installed so that it was compatible with the base lib version shipped with Ubuntu 20.04. We'll upgrade to 22.04 eventually (before it falls out of LTS). Ref: https://github.com/radian-software/apheleia/pull/221 * Add a `make fmt-build-common` target which allows tagging a docker image containing just the base software and not any formatters, to make it easy to debug formatter installation manually. * Update `apheleia-ft` to also run formatter tests when any files affecting a formatter are changed, which includes the installation script, the sample input/output, and also any scripts (e.g. `apheleia-phpcs`) that it uses. We don't have any logic that will run all formatter tests at once, because that is unwieldy. That can be done manually if making a big change. * Update to actions/checkout@v4 from v2 because the older one was listed as deprecated. * Print full stacktraces when `apheleia-ft` fails with an Elisp error.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b48264c..1be76b8 100644
--- a/Makefile
+++ b/Makefile
@@ -80,7 +80,11 @@ docker: ## Start a Docker shell; e.g. make docker VERSION=25.3
.PHONY: fmt-build # env vars: FORMATTERS, TAG
fmt-build: ## Build a Docker image with formatters installed
- @test/formatters/build-image.bash
+ @COMMON=0 test/formatters/build-image.bash
+
+.PHONY: fmt-build-common # env var: TAG
+fmt-build-common: ## Build a Docker image with just the common base
+ @COMMON=1 test/formatters/build-image.bash
.PHONY: fmt-docker # env var: TAG
fmt-docker: ## Start a Docker shell for testing formatters