diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-12-05 14:29:46 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-23 13:28:24 +0100 |
commit | 6df8b9c6a90de333c9e24a49615fffa9e350e382 (patch) | |
tree | 21a855182606852214e74583ec6c8e6289cc75c7 /GNUmakefile | |
parent | 842af5c3571c5318ae4e1c81dc52457fbf6d3f21 (diff) | |
download | wallabag-6df8b9c6a90de333c9e24a49615fffa9e350e382.tar.gz wallabag-6df8b9c6a90de333c9e24a49615fffa9e350e382.tar.zst wallabag-6df8b9c6a90de333c9e24a49615fffa9e350e382.zip |
Fix PG & Travis drop/create database
Diffstat (limited to 'GNUmakefile')
-rwxr-xr-x | GNUmakefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index a04468cb..d8c16202 100755 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -25,6 +25,12 @@ run: ## Run the wallabag built-in server | |||
25 | build: ## Run webpack | 25 | build: ## Run webpack |
26 | @npm run build:$(ENV) | 26 | @npm run build:$(ENV) |
27 | 27 | ||
28 | prepare-travis-pg: ## Custom prepare for Travis & Postgres (do not drop/create the database) | ||
29 | ifdef DB | ||
30 | cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml | ||
31 | endif | ||
32 | php bin/console doctrine:migrations:migrate --no-interaction --env=test | ||
33 | |||
28 | prepare: clean ## Prepare database for testsuite | 34 | prepare: clean ## Prepare database for testsuite |
29 | ifdef DB | 35 | ifdef DB |
30 | cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml | 36 | cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml |