commit 678006a4b5ecf39d4ce6fcb1d2b7cefe3764c9ea parent da995cbc513cb4ad7abb700922440bd00cef768f Author: Felicitus <felicitus@felicitus.org> Date: Tue, 7 Jul 2015 21:52:34 +0200 Fixed wrong environment variable name for setting up test databases Diffstat:
M | .travis.yml | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml @@ -24,10 +24,10 @@ matrix: - php: hhvm before_script: - - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS partkeepr_test;" -U postgres; fi - - if [[ "$DB" == "pgsql" ]]; then psql -c "create database partkeepr_test;" -U postgres; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "DROP IF EXISTS partkeepr_test;" -uroot; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS partkeepr_test;" -uroot; fi + - if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS partkeepr_test;" -U postgres; fi + - if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "create database partkeepr_test;" -U postgres; fi + - if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "DROP IF EXISTS partkeepr_test;" -uroot; fi + - if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS partkeepr_test;" -uroot; echo "OK"; fi - composer self-update - composer install --prefer-source --no-interaction - app/console cache:warmup --env=test