blob: ea6f30d0c871f119bd0345bc87b189f6744712d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
set -euo pipefail
offline=
if [ "$#" -gt 0 ] && [ "$1" = "--offline" ]; then
offline=--offline
shift 1
fi
cargo clippy -q --all-targets -- -D clippy::all
cargo build --all-targets -q $offline
chronic cargo test -q $offline
subplot docgen obnam-benchmark.subplot -o obnam-benchmark.html
subplot codegen obnam-benchmark.subplot -o test.py
if ! chronic python3 test.py --log test.log "$@"; then
cat test.log
exit 1
fi
cargo fmt -- --check
echo A-OK
|