Move tests cache clean to the bootstrap file

This commit is contained in:
Yassine Guedidi 2024-01-07 22:15:55 +01:00
parent 479cded7b4
commit 3e403b84d3
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -1,3 +1,7 @@
<?php
use Symfony\Component\Filesystem\Filesystem;
require __DIR__ . '/../vendor/autoload.php';
(new Filesystem())->remove(__DIR__ . '/../var/cache/test');