Skip to content

Commit 8d4202e

Browse files
author
dereuromark
committed
Fix travis
1 parent a8afafd commit 8d4202e

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
@@ -9,7 +9,7 @@ php:
99

1010
env:
1111
matrix:
12-
- DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_username='travis' db_password=''
12+
- DB=mysql db_dsn='mysql://root@127.0.0.1/cakephp_test'
1313
global:
1414
- DEFAULT=1
1515

@@ -33,7 +33,7 @@ before_script:
3333

3434
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^4.8|^5.7|^6.0"; fi
3535

36-
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
36+
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi"
3737
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
3838

3939
- phpenv rehash

0 commit comments

Comments
 (0)