Fix PG & Travis drop/create database

This commit is contained in:
Jeremy Benoist
2018-12-05 14:29:46 +01:00
parent 842af5c357
commit 6df8b9c6a9
3 changed files with 13 additions and 5 deletions

View File

@ -25,6 +25,12 @@ run: ## Run the wallabag built-in server
build: ## Run webpack
@npm run build:$(ENV)
prepare-travis-pg: ## Custom prepare for Travis & Postgres (do not drop/create the database)
ifdef DB
cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml
endif
php bin/console doctrine:migrations:migrate --no-interaction --env=test
prepare: clean ## Prepare database for testsuite
ifdef DB
cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml