Skip to content

Commit f1286b9

Browse files
committed
Fix of couple of merge errors
Driver is instaleed as 3.2, library is under driver in 3.2
1 parent 45f6505 commit f1286b9

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
MYSQL_TEST_USER: root
2121
MYSQL_TEST_PASSWD: "heyPassw+-_20oRd"
2222
MYSQL_TEST_DB: testo
23+
TEST_DRIVER: ${{ github.workspace }}/driver/libmaodbc.so
2324
TEST_DSN: maodbc_test
2425
TEST_UID: root
2526
TEST_SERVER: mariadb.example.com
@@ -28,7 +29,7 @@ env:
2829
TEST_SCHEMA: testo
2930
ODBCINI: "${{ github.workspace }}/test/odbc.ini"
3031
ODBCSYSINI: ${{ github.workspace }}/test
31-
ODBCINTSTINI: ${{ github.workspace }}/test/odbcinst.ini
32+
ODBCINSTINI: ${{ github.workspace }}/test/odbcinst.ini
3233

3334
jobs:
3435
setup:
@@ -85,8 +86,8 @@ jobs:
8586
brew install libiodbc openssl
8687
ls -lrt /opt/homebrew/opt/libiodbc/lib
8788
88-
TEST_DRIVER=${{ github.workspace }}/RelWithDebInfo/libmaodbc.dylib
89-
echo "TEST_DRIVER=${{ github.workspace }}/RelWithDebInfo/libmaodbc.dylib" >> $GITHUB_ENV
89+
TEST_DRIVER=${{ github.workspace }}/driver/RelWithDebInfo/libmaodbc.dylib
90+
echo "TEST_DRIVER=${{ github.workspace }}/driver/RelWithDebInfo/libmaodbc.dylib" >> $GITHUB_ENV
9091
cmake -G Xcode -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="" -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=NO -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO -DWITH_SIGNCODE=OFF -DODBC_LIB_DIR=/opt/homebrew/opt/libiodbc/lib -DODBC_INCLUDE_DIR=/opt/homebrew/opt/libiodbc/include -DCONC_WITH_MSI=OFF -DCONC_WITH_UNIT_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=OPENSSL -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DWITH_EXTERNAL_ZLIB=On .
9192
cmake --build . --config RelWithDebInfo
9293
@@ -108,17 +109,18 @@ jobs:
108109
shell: powershell
109110
run: |
110111
pwd
111-
ls ${{ github.workspace }}\packaging\windows
112+
ls ${{ github.workspace }}\packaging\windows\*.msi
112113
Get-ChildItem -Path ${{ github.workspace }}\packaging\windows\mariadb-connector-odbc-*.msi
113114
$log = "install.log"
114115
foreach ($msi in Get-ChildItem -Path ${{ github.workspace }}\packaging\windows\mariadb-connector-odbc-*.msi) {
116+
echo $msi
115117
$procInstall= Start-Process msiexec.exe -ArgumentList "/i $($msi.FullName) /qn /norestart" -NoNewWindow -PassThru
116118
#$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
117119
#$procMain.WaitForExit()
118120
#$procLog.Kill()
119121
}
120122
Get-OdbcDriver -Platform "64-bit"
121-
Add-OdbcDsn -Name $env:TEST_DSN -DriverName "MariaDB ODBC 3.1 Driver" -DsnType "User" -SetPropertyValue @( "SERVER=$env:TEST_SERVER", "DATABASE=$env:TEST_SCHEMA", "USER=$env:TEST_UID", "PASSWORD=$env:TEST_PASSWORD", "PORT=$env:TEST_PORT" )
123+
Add-OdbcDsn -Name $env:TEST_DSN -DriverName "MariaDB ODBC 3.2 Driver" -DsnType "User" -SetPropertyValue @( "SERVER=$env:TEST_SERVER", "DATABASE=$env:TEST_SCHEMA", "USER=$env:TEST_UID", "PASSWORD=$env:TEST_PASSWORD", "PORT=$env:TEST_PORT" )
122124
123125
- name: Run test suite
124126
shell: bash
@@ -134,17 +136,18 @@ jobs:
134136
fi
135137
136138
if [[ "${RUNNER_OS}" == "Windows" ]]; then
137-
TEST_DRIVER="MariaDB ODBC 3.1 Driver"
139+
TEST_DRIVER="MariaDB ODBC 3.2 Driver"
138140
# INSTALLFOLDER=''
139141
ls ./RelWithDebInfo
140-
set +x
141-
#odbcconf CONFIGDSN "$TEST_DRIVER" "DSN=$TEST_DSN;SERVER=$TEST_SERVER;DATABASE=$TEST_SCHEMA;USER=$TEST_UID;PASSWORD=$TEST_PASSWORD;PORT=$TEST_PORT;$TEST_ADD_PARAM"
142142
set -ex
143143
else
144144
145145
cat $ODBCINSTINI
146146
cat $ODBCINI | grep -v PASSWORD
147147
148+
ls ../driver/
149+
echo "$TEST_DRIVER"
150+
148151
chmod 666 $ODBCINI $ODBCSYSINI/odbcinst.ini
149152
ls -lrt
150153
fi

0 commit comments

Comments
 (0)