Move tests cache clean to the bootstrap file
This commit is contained in:
parent
479cded7b4
commit
3e403b84d3
@ -14,9 +14,6 @@ endif
|
|||||||
help: ## Display this help menu
|
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}'
|
@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
|
install: ## Install wallabag with the latest version
|
||||||
@./scripts/install.sh $(ENV)
|
@./scripts/install.sh $(ENV)
|
||||||
|
|
||||||
@ -34,7 +31,7 @@ build: ## Run webpack
|
|||||||
@yarn install
|
@yarn install
|
||||||
@yarn build:$(ENV)
|
@yarn build:$(ENV)
|
||||||
|
|
||||||
prepare: clean ## Prepare database for testsuite
|
prepare: ## Prepare database for testsuite
|
||||||
ifdef DB
|
ifdef DB
|
||||||
cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml
|
cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml
|
||||||
endif
|
endif
|
||||||
@ -57,6 +54,6 @@ endif
|
|||||||
deploy: ## Deploy wallabag
|
deploy: ## Deploy wallabag
|
||||||
@bundle exec cap staging deploy
|
@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
|
.DEFAULT_GOAL := install
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Symfony\Component\Filesystem\Filesystem;
|
||||||
|
|
||||||
require __DIR__ . '/../vendor/autoload.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
|
(new Filesystem())->remove(__DIR__ . '/../var/cache/test');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user