mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Refactor workflow rust: Extract test into script
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9bf1ce3000
commit
5302240829
2 changed files with 23 additions and 10 deletions
22
ci-scripts/run_tests_unix.sh
Executable file
22
ci-scripts/run_tests_unix.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
bins="cargo-deb cargo-llvm-cov cargo-binstall"
|
||||
test_bins="cargo-deb cargo-llvm-cov"
|
||||
|
||||
# Install binaries using cargo-binstall
|
||||
for bin in $bins; do
|
||||
"./$1" binstall --log-level debug --no-confirm "$bin"
|
||||
done
|
||||
|
||||
# Test that the installed binaries can be run
|
||||
for bin in $test_bins; do
|
||||
"$HOME/.cargo/bin/$bin" --version
|
||||
done
|
||||
cargo binstall --help >/dev/null
|
||||
|
||||
# Install binaries using `--manifest-path`
|
||||
"./$1" binstall --log-level debug --manifest-path . --no-confirm cargo-binstall
|
||||
# Test that the installed binaries can be run
|
||||
cargo binstall --help >/dev/null
|
Loading…
Add table
Add a link
Reference in a new issue