CI: Explicitly set socket path for mysql instance on MacOS. Give mysql more time to startup
@@ -3,9 +3,9 @@ trigger:
- ci-*
jobs:
- - job: 'TestBasicLinux'
+ - job: "TestBasicLinux"
pool:
- vmImage: 'ubuntu-latest'
+ vmImage: "ubuntu-latest"
strategy:
maxParallel: 10
matrix:
@@ -42,9 +42,9 @@ jobs:
DATABASE_URL: mysql://root:root@127.0.0.1:3306/mysql
displayName: Run tests
- - job: 'TestBasicMacOs'
+ - job: "TestBasicMacOs"
pool:
- vmImage: 'macOS-10.15'
+ vmImage: "macOS-10.15"
strategy:
maxParallel: 10
matrix:
@@ -58,8 +58,9 @@ jobs:
brew services stop mysql
sleep 3
echo 'local_infile=1' >> /usr/local/etc/my.cnf
+ echo 'socket=/tmp/mysql.sock' >> /usr/local/etc/my.cnf
brew services start mysql
- sleep 2
+ sleep 5
/usr/local/Cellar/mysql/*/bin/mysql -e "SET GLOBAL max_allowed_packet = 36700160;" -uroot
displayName: Install MySql
- bash: |
@@ -75,9 +76,9 @@ jobs:
DATABASE_URL: mysql://root@127.0.0.1/mysql
displayName: Run tests
- - job: 'TestBasicWindows'
+ - job: "TestBasicWindows"
pool:
- vmImage: 'vs2017-win2016'
+ vmImage: "vs2017-win2016"
strategy:
maxParallel: 10
matrix:
@@ -107,10 +108,9 @@ jobs:
DATABASE_URL: mysql://root:password@127.0.0.1/mysql
displayName: Run tests
-
- - job: 'TestMySql'
+ - job: "TestMySql"
pool:
- vmImage: 'ubuntu-latest'
+ vmImage: "ubuntu-latest"
strategy:
maxParallel: 10
matrix:
@@ -148,9 +148,9 @@ jobs:
DATABASE_URL: mysql://root:password@127.0.0.1/mysql
displayName: Run tests in Docker
- - job: 'TestMariaDb'
+ - job: "TestMariaDb"
pool:
- vmImage: 'ubuntu-latest'
+ vmImage: "ubuntu-latest"
strategy:
maxParallel: 10
matrix:
