Skip to content

Commit c03ce84

Browse files
committed
Hide the fact that docker is a ridiculous platform :P
1 parent 0f828a8 commit c03ce84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sudo: false
1111
env:
1212
matrix:
1313
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
14-
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
14+
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test'
1515
- DB=sqlite db_dsn='sqlite:///:memory:'
1616
global:
1717
- DEFAULT=1
@@ -39,7 +39,7 @@ before_script:
3939
- composer self-update
4040
- composer install --prefer-source --no-interaction --dev
4141

42-
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
42+
- sh -c "if [ '$DB' = 'mysql' ]; then if [ '$DOCKER' = '1' ]; then apt-get -qq install -qq -y mysql-server && service mysql start; fi; mysql -e 'CREATE DATABASE cakephp_test;'; fi"
4343

4444
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
4545

0 commit comments

Comments
 (0)