|
48 | 48 | pool:
|
49 | 49 | vmimage: 'windows-latest'
|
50 | 50 | steps:
|
51 |
| - - script: | |
52 |
| - mkdir C:\mysql |
53 |
| - CD /D C:\mysql |
54 |
| - curl -fsS --retry 3 --retry-connrefused -o mysql.msi https://cdn.mysql.com/archives/mysql-installer/mysql-installer-community-8.0.15.0.msi |
55 |
| - msiexec /q /log install.txt /i mysql.msi datadir=C:\mysql installdir=C:\mysql |
56 |
| - call "C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" community install server;8.0.15;x64:*:port=3306;rootpasswd=test;servicename=MySQL -silent |
57 |
| - netsh advfirewall firewall add rule name="Allow mysql" dir=in action=allow edge=yes remoteip=any protocol=TCP localport=3306 |
58 |
| - displayName: Install MySQL Server |
59 |
| - - script: | |
60 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest -e "SET GLOBAL local_infile=1; SET GLOBAL log_bin_trust_function_creators=1;" |
61 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init.sql |
62 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_sha256.sql |
63 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_caching_sha2.sql |
64 |
| - displayName: Configure MySQL Server |
| 51 | + - template: '.ci/install-mysql-windows.yml' |
65 | 52 | - task: CopyFiles@2
|
66 | 53 | displayName: 'Copy config.json'
|
67 | 54 | inputs:
|
@@ -131,21 +118,7 @@ jobs:
|
131 | 118 | pool:
|
132 | 119 | vmimage: 'windows-latest'
|
133 | 120 | steps:
|
134 |
| - - script: | |
135 |
| - mkdir C:\mysql |
136 |
| - CD /D C:\mysql |
137 |
| - curl -fsS --retry 3 --retry-connrefused -o mysql.msi https://cdn.mysql.com/archives/mysql-installer/mysql-installer-community-8.0.15.0.msi |
138 |
| - msiexec /q /log install.txt /i mysql.msi datadir=C:\mysql installdir=C:\mysql |
139 |
| - call "C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" community install server;8.0.15;x64:*:port=3306;rootpasswd=test;servicename=MySQL -silent |
140 |
| - netsh advfirewall firewall add rule name="Allow mysql" dir=in action=allow edge=yes remoteip=any protocol=TCP localport=3306 |
141 |
| - displayName: Install MySQL Server |
142 |
| - - script: | |
143 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest -e "SET GLOBAL local_infile=1; SET GLOBAL log_bin_trust_function_creators=1;" |
144 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest -e "CREATE SCHEMA conformance COLLATE utf8mb4_bin;" |
145 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init.sql |
146 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_sha256.sql |
147 |
| - "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_caching_sha2.sql |
148 |
| - displayName: Configure MySQL Server |
| 121 | + - template: '.ci/install-mysql-windows.yml' |
149 | 122 | - task: UseDotNet@2
|
150 | 123 | displayName: 'Install .NET Core'
|
151 | 124 | inputs:
|
|
0 commit comments