added ci scripts for rust
This commit is contained in:
16
ci/run-cargo-test.sh
Executable file
16
ci/run-cargo-test.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ERROR=0
|
||||
|
||||
while IFS= read -r -d '' f; do
|
||||
dir="$(dirname "${f}")"
|
||||
|
||||
echo "run 'cargo test' in ${dir}"
|
||||
cd "${dir}" && cargo test
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
ERROR=1
|
||||
fi
|
||||
done < <(find . -type f -name 'Cargo.toml' -print0)
|
||||
|
||||
exit ${ERROR}
|
||||
Reference in New Issue
Block a user