mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 20:41:03 +00:00
Revert PG on Travis about drop/create the database
This commit is contained in:
parent
c416ed485f
commit
7485a272ff
2 changed files with 1 additions and 9 deletions
|
@ -59,9 +59,7 @@ script:
|
||||||
- travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
|
- travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
|
||||||
|
|
||||||
- echo "travis_fold:start:prepare"
|
- echo "travis_fold:start:prepare"
|
||||||
# custom "prepare" for PG because the database should be created with a different user (see "before_script")
|
- make prepare DB=$DB
|
||||||
- if [[ ! $DB = pgsql ]]; then make prepare DB=$DB; fi;
|
|
||||||
- if [[ $DB = pgsql ]]; then make prepare-travis-pg DB=$DB; fi;
|
|
||||||
- echo "travis_fold:end:prepare"
|
- echo "travis_fold:end:prepare"
|
||||||
|
|
||||||
- make fixtures
|
- make fixtures
|
||||||
|
|
|
@ -25,12 +25,6 @@ run: ## Run the wallabag built-in server
|
||||||
build: ## Run webpack
|
build: ## Run webpack
|
||||||
@npm run build:$(ENV)
|
@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
|
prepare: clean ## 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
|
||||||
|
|
Loading…
Reference in a new issue