- travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
- echo "travis_fold:start:prepare"
- # custom "prepare" for PG because the database should be created with a different user (see "before_script")
- - if [[ ! $DB = pgsql ]]; then make prepare DB=$DB; fi;
- - if [[ $DB = pgsql ]]; then make prepare-travis-pg DB=$DB; fi;
+ - make prepare DB=$DB
- echo "travis_fold:end:prepare"
- make fixtures
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