Skip to content

Commit c9de5da

Browse files
committed
Install ms odbc driver in ci
1 parent 79c041b commit c9de5da

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

.circleci/continue_config.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ jobs:
237237
steps:
238238
- halt_unless_core
239239
- checkout
240+
- run:
241+
name: Install OS-level dependencies
242+
command: ./.circleci/install-prerequisites.sh "<< parameters.engine >>"
240243
- run:
241244
name: Generate database name
242245
command: |
@@ -247,6 +250,7 @@ jobs:
247250
echo "export DATABRICKS_CATALOG='$TEST_DB_NAME'" >> "$BASH_ENV"
248251
echo "export REDSHIFT_DATABASE='$TEST_DB_NAME'" >> "$BASH_ENV"
249252
echo "export GCP_POSTGRES_DATABASE='$TEST_DB_NAME'" >> "$BASH_ENV"
253+
echo "export FABRIC_DATABASE='$TEST_DB_NAME'" >> "$BASH_ENV"
250254
- run:
251255
name: Create test database
252256
command: ./.circleci/manage-test-db.sh << parameters.engine >> "$TEST_DB_NAME" up
@@ -282,13 +286,13 @@ workflows:
282286
parameters:
283287
engine:
284288
- duckdb
285-
- postgres
286-
- mysql
287-
- mssql
288-
- trino
289-
- spark
290-
- clickhouse
291-
- risingwave
289+
#- postgres
290+
#- mysql
291+
#- mssql
292+
#- trino
293+
#- spark
294+
#- clickhouse
295+
#- risingwave
292296
- engine_tests_cloud:
293297
name: cloud_engine_<< matrix.engine >>
294298
context:
@@ -298,14 +302,14 @@ workflows:
298302
matrix:
299303
parameters:
300304
engine:
301-
- snowflake
302-
- databricks
303-
- redshift
304-
- bigquery
305-
- clickhouse-cloud
306-
- athena
305+
#- snowflake
306+
#- databricks
307+
#- redshift
308+
#- bigquery
309+
#- clickhouse-cloud
310+
#- athena
307311
- fabric
308-
- gcp-postgres
312+
#- gcp-postgres
309313
#filters:
310314
# branches:
311315
# only:

.circleci/install-prerequisites.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@ ENGINE_DEPENDENCIES=""
1717

1818
if [ "$ENGINE" == "spark" ]; then
1919
ENGINE_DEPENDENCIES="default-jdk"
20+
elif [ "$ENGINE" == "fabric" ]; then
21+
echo "Installing Microsoft package repository"
22+
23+
# ref: https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server
24+
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)/packages-microsoft-prod.deb
25+
sudo dpkg -i packages-microsoft-prod.deb
26+
rm packages-microsoft-prod.deb
27+
28+
ENGINE_DEPENDENCIES="msodbcsql18"
2029
fi
2130

2231
ALL_DEPENDENCIES="$COMMON_DEPENDENCIES $ENGINE_DEPENDENCIES"
2332

2433
echo "Installing OS-level dependencies: $ALL_DEPENDENCIES"
2534

26-
sudo apt-get clean && sudo apt-get -y update && sudo apt-get -y install $ALL_DEPENDENCIES
35+
sudo apt-get clean && sudo apt-get -y update && sudo ACCEPT_EULA='Y' apt-get -y install $ALL_DEPENDENCIES
2736

2837
echo "All done"

packages-microsoft-prod.deb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
404: Not Found

0 commit comments

Comments
 (0)