From 3e403b84d3794436c8221d318742eb3a28b242fe Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 7 Jan 2024 22:15:55 +0100 Subject: [PATCH] Move tests cache clean to the bootstrap file --- GNUmakefile | 7 ++----- tests/bootstrap.php | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 053308cea..378cfa7d5 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,9 +14,6 @@ endif help: ## Display this help menu @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' -clean: ## Clear the application cache - rm -rf var/cache/test - install: ## Install wallabag with the latest version @./scripts/install.sh $(ENV) @@ -34,7 +31,7 @@ build: ## Run webpack @yarn install @yarn build:$(ENV) -prepare: clean ## Prepare database for testsuite +prepare: ## Prepare database for testsuite ifdef DB cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml endif @@ -57,6 +54,6 @@ endif deploy: ## Deploy wallabag @bundle exec cap staging deploy -.PHONY: help clean prepare install fixtures update build test release deploy run dev +.PHONY: help prepare install fixtures update build test release deploy run dev .DEFAULT_GOAL := install diff --git a/tests/bootstrap.php b/tests/bootstrap.php index d21c14df8..ab7b163e3 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,3 +1,7 @@ remove(__DIR__ . '/../var/cache/test');