1
0
Fork 1
mirror of https://example.com synced 2024-11-21 22:06:39 +09:00

dev: remove revert test from Make recipe

This commit is contained in:
naskya 2024-02-28 23:54:30 +09:00
parent 99f05f3b09
commit f8ac643681
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -35,22 +35,22 @@ pre-commit: test format shellcheck update-lockfiles regenerate-entities neko/ind
.PHONY: test
test: test-revert
test: # test-revert
.PHONY: test-revert
test-revert: $(T)/test-revert
# .PHONY: test-revert
# test-revert: $(T)/test-revert
$(T)/test-revert: neko/revert.sql $(MIGRATIONS)
cd dev && \
podman-compose exec db \
psql \
--echo-all \
--user=$(POSTGRES_USER) \
--dbname=$(POSTGRES_DB) \
--set='ON_ERROR_STOP=1' \
--command="$$(printf '%s\nROLLBACK;' "$$(cat ../neko/revert.sql | sed '$$ d')")"
touch $@
# $(T)/test-revert: neko/revert.sql $(MIGRATIONS)
# cd dev && \
# podman-compose exec db \
# psql \
# --echo-all \
# --user=$(POSTGRES_USER) \
# --dbname=$(POSTGRES_DB) \
# --set='ON_ERROR_STOP=1' \
# --command="$$(printf '%s\nROLLBACK;' "$$(cat ../neko/revert.sql | sed '$$ d')")"
# touch $@
.PHONY: update-lockfiles