summaryrefslogtreecommitdiff
path: root/maint/matrix_test_cfg
blob: 45238dd315929b426138b91596f1ea3de4bd57a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
# Run cargo check and cargo test with various featuresets relevant to configuration

set -euo pipefail

: "${CARGO:=cargo}"

set -x

for feat in '' bridge-client pt-client; do
    feat_args=(--no-default-features "--features=tokio,native-tls,$feat")

    $CARGO check "${feat_args[@]}" -p arti-client
    $CARGO check "${feat_args[@]}" -p arti
    $CARGO test "${feat_args[@]}" -p arti -- cfg
done