aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
blob: 7f82c47454e967270c8edd0aa2a21c6134f15941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# A script to run a simplified version of the checks done by CI.
#
# Usage
#
# ```sh
# . ./ci.sh
# ```

echo "Running 'cargo fmt'"
cargo +nightly fmt --all

echo "Running 'cargo clippy'"
cargo +nightly clippy --all --all-features --all-targets

echo "Running 'cargo test'"
cargo +nightly test --all --all-features --exclude expandtest

echo "Running 'cargo doc'"
cargo +nightly doc --no-deps --all --all-features

echo "Running 'expandtest'"
# See also https://docs.rs/macrotest/1/macrotest/#updating-expandedrs
# rm **/*.expanded.rs
cargo +nightly test --manifest-path tests/expand/Cargo.toml