aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
blob: e601d34cac4d3e46715a7f363ac6e47c46b969b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Run clippy checks
if [ "$CLIPPY" == "true" ]; then
    cargo clippy --all-targets
    exit
fi

# Run clippy rustfmt
if [ "$RUSTFMT" == "true" ]; then
    cargo fmt -- --check
    exit
fi

# Run tests
cargo test