Skip to content

Commit

Permalink
only build necessary features for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed Oct 10, 2024
1 parent 9094154 commit 3106e7d
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test +ARGS="":
cargo test --features all {{ARGS}} -- --nocapture

test-ci:
cargo test --features all --test test_postgres --test test_polars --test test_arrow --test test_mysql
cargo test --features src_postgres --features dst_arrow --test test_postgres

test-feature-gate:
cargo c --features src_postgres
Expand Down Expand Up @@ -46,12 +46,6 @@ test-python +opts="": setup-python
test-python-s +opts="":
cd connectorx-python && poetry run pytest connectorx/tests -v -s {{opts}}

test-fed file="3.sql":
cd connectorx && cargo run --features src_postgres --features src_mysql --features dst_arrow --features federation --example federated_test "../federated-query/test-queries/{{file}}"

test-datafusion:
cd connectorx && cargo run --features src_postgres --features src_mysql --features dst_arrow --features federation --example test

seed-db:
#!/bin/bash
psql $POSTGRES_URL -f scripts/postgres.sql
Expand Down Expand Up @@ -112,24 +106,4 @@ build-python-wheel:
# copy files
cp -rf connectorx-python/target/release/jassets connectorx-python/connectorx/dependencies
# build final wheel
cd connectorx-python && maturin build --release -i python

bench-fed path:
just python-tpch fed --file {{path}}/q2.sql
just python-tpch-ext fed --file {{path}}/q3.sql
just python-tpch-ext fed --file {{path}}/q4.sql
just python-tpch-ext fed --file {{path}}/q5.sql
just python-tpch-ext fed --file {{path}}/q7.sql
just python-tpch-ext fed --file {{path}}/q8.sql
just python-tpch-ext fed --file {{path}}/q9.sql
just python-tpch-ext fed --file {{path}}/q10.sql
just python-tpch-ext fed --file {{path}}/q11.sql
just python-tpch-ext fed --file {{path}}/q12.sql
just python-tpch-ext fed --file {{path}}/q13.sql
just python-tpch-ext fed --file {{path}}/q14.sql
just python-tpch-ext fed --file {{path}}/q16.sql
just python-tpch-ext fed --file {{path}}/q17.sql
just python-tpch-ext fed --file {{path}}/q18.sql
just python-tpch-ext fed --file {{path}}/q19.sql
just python-tpch-ext fed --file {{path}}/q20.sql
just python-tpch-ext fed --file {{path}}/q22.sql
cd connectorx-python && maturin build --release -i python

0 comments on commit 3106e7d

Please sign in to comment.