]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - GNUmakefile
Fix PG & Travis drop/create database
[github/wallabag/wallabag.git] / GNUmakefile
index a04468cb1a6a9704440aadb7eb27fdaef0f22fee..d8c16202848e091db22d4e65409125e443db0692 100755 (executable)
@@ -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