Skip to content
This repository was archived by the owner on Mar 7, 2020. It is now read-only.

Commit 3a38aae

Browse files
committed
fix failing travis build
1 parent df99307 commit 3a38aae

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ MYSQL_ROOT_PASSWORD=root
2828
MYSQL_DATABASE=application_prod
2929
MYSQL_USER=application
3030
MYSQL_PASSWORD=application_passwd
31+
MYSQL_HOST=mysql
3132

3233
###> doctrine/doctrine-bundle ###
3334
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
3435
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
3536
# Configure your db driver and server_version in config/packages/doctrine.yaml
36-
DATABASE_URL=mysql://$MYSQL_USER:$MYSQL_PASSWORD@mysql:3306/$MYSQL_DATABASE
37+
DATABASE_URL=mysql://$MYSQL_USER:$MYSQL_PASSWORD@$MYSQL_HOST:3306/$MYSQL_DATABASE
3738
###< doctrine/doctrine-bundle ###
3839

3940
###> symfony/swiftmailer-bundle ###

.env.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
2+
MYSQL_DATABASE=application_test
23

34
KERNEL_CLASS='App\Kernel'

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ env:
77
- APP_ENV=test
88
- APP_NAME_CACHE_DIR=$HOME/.app_name-cache
99
- APP_NAME_BUILD_DIR=etc/build
10+
- MYSQL_HOST=127.0.0.1
11+
- MYSQL_USER=root
12+
- MYSQL_PASSWORD=
13+
- MYSQL_DATABASE=application_test
1014

1115
matrix:
1216
include:

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- ###- symfony/framework-bundle ### -->
1717

1818
<!-- ###+ doctrine/doctrine-bundle ### -->
19-
<env name="DATABASE_URL" value="mysql://[email protected]:3306/app_name_%kernel.environment%"/>
19+
<env name="DATABASE_URL" value="mysql://[email protected]:3306/application_test"/>
2020
<!-- ###- doctrine/doctrine-bundle ### -->
2121

2222
<server name="IS_DOCTRINE_ORM_SUPPORTED" value="true" />

0 commit comments

Comments
 (0)