mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00

and also test `fetch_crate_cratesio_version_matched` in `e2e-tests/live.sh`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
21 lines
576 B
Bash
Executable file
21 lines
576 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
unset CARGO_INSTALL_ROOT
|
|
|
|
CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
|
export CARGO_HOME
|
|
export PATH="$CARGO_HOME/bin:$PATH"
|
|
|
|
# Install binaries using `--manifest-path`
|
|
# Also test default github template
|
|
"./$1" binstall --force --manifest-path "manifests/github-test-Cargo.toml" --no-confirm cargo-binstall
|
|
|
|
# Test that the installed binaries can be run
|
|
cargo binstall --help >/dev/null
|
|
|
|
cargo_binstall_version="$(cargo binstall -V)"
|
|
echo "$cargo_binstall_version"
|
|
|
|
[ "$cargo_binstall_version" = "cargo-binstall 0.12.0" ]
|