7575          cmake -G "Visual Studio 16 2019" -DCONC_WITH_MSI=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SIGNCODE=0 -DWITH_SSL=SCHANNEL -DWITH_OPENSSL=OFF 
7676          cmake --build . --config RelWithDebInfo 
7777        displayName: 'build connector' 
78+ task : CopyFiles@2 
79+         inputs :
80+           contents : ' wininstall/**.msi' 
81+           targetFolder : $(Build.ArtifactStagingDirectory) 
82+       - task : PublishPipelineArtifact@1 
83+         inputs :
84+           targetPath : ' $(Build.ArtifactStagingDirectory)' 
85+           artifactName : msi_package 
7886
7987      - task : PowerShell@2 
8088        inputs :
8593            $regPath = "HKCU:\Software\ODBC\ODBC.INI\test" 
8694            New-Item -Path $regPath 
8795            New-ItemProperty -Path $regPath -Name "CONN_TIMEOUT" -Value "0" 
88-             New-ItemProperty -Path $regPath -Name "DATABASE" -Value "testo " 
96+             New-ItemProperty -Path $regPath -Name "DATABASE" -Value "test " 
8997            New-ItemProperty -Path $regPath -Name "DESCRIPTION" -Value "MariaDB ODBC test" 
9098            New-ItemProperty -Path $regPath -Name "Driver" -Value "MariaDB ODBC 3.1 Driver" 
9199            New-ItemProperty -Path $regPath -Name "OPTIONS" -Value "0" 
@@ -103,14 +111,14 @@ jobs:
103111        inputs :
104112          targetType : inline 
105113          script : | 
106-             $msifile = Get-ChildItem $env:$(System.DefaultWorkingDirectory)\mariadb-connector-odbc*.msi | Select-Object -First 1 
107-             Push-AppveyorArtifact $msifile.FullName -FileName $msifile.Name 
114+             $msifile = Get-ChildItem $env:$(System.DefaultWorkingDirectory)\wininstall\mariadb-connector-odbc*.msi | Select-Object -First 1 
108115            Write $msifile 
109-             msiexec /i $msifile INSTALLDIR=c:\mariadb-odbc /qn 
116+             msiexec /i $msifile.fullname  INSTALLDIR=c:\mariadb-odbc /qn 
110117displayName : ' install odbc' 
111118
112119      - script : | 
113120          set MARIADB_PLUGIN_DIR=$(System.DefaultWorkingDirectory)\libmariadb\plugins\lib\RelWithDebInfo 
121+           SET TEST_SCHEMA=test 
114122
115123          timeout /T 1 
116124          cd test 
@@ -225,12 +233,19 @@ jobs:
225233
226234script : | 
227235          sudo apt-get install -f -y make cmake 
228-           cd libmariadb 
229-           cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=OPENSSL -DCERT_PATH=$(System.DefaultWorkingDirectory)/tmp 
230-           make 
231- 
232-           cd .. 
233-           cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_OPENSSL=ON -DWITH_SSL=OPENSSL 
236+           #cd libmariadb 
237+           #cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=OPENSSL -DCERT_PATH=$(System.DefaultWorkingDirectory)/tmp 
238+           #make 
239+ 
240+           #cd .. 
241+           export TEST_SCHEMA=testo 
242+           export TEST_DRIVER=maodbc_test 
243+           export TEST_DSN=maodbc_test 
244+           export TEST_SERVER=mariadb.example.com 
245+           export TEST_UID=someUser 
246+           export TEST_PASSWORD=Passw@rd2 
247+ 
248+           cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_OPENSSL=ON -DWITH_SSL=OPENSSL . 
234249          cmake --build . --config RelWithDebInfo 
235250        displayName: 'Build' 
236251
@@ -262,6 +277,9 @@ jobs:
262277          export ODBCINI="$(System.DefaultWorkingDirectory)/test/odbc.ini" 
263278          export ODBCSYSINI=$(System.DefaultWorkingDirectory)/test 
264279
280+           cat $ODBCINI 
281+           cat $ODBCSYSINI/odbcinst.ini 
282+ 
265283          ctest -V 
266284
267285          if [ $? -ne 0 ]; then 
0 commit comments