mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Migrate CI and builds to Just, add "full" builds (#660)
This commit is contained in:
parent
305bf8123d
commit
aea9df602c
30 changed files with 717 additions and 463 deletions
29
e2e-tests/live.sh
Executable file
29
e2e-tests/live.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
unset CARGO_INSTALL_ROOT
|
||||
|
||||
crates="b3sum cargo-release cargo-binstall cargo-watch miniserve sccache"
|
||||
|
||||
export CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
|
||||
othertmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-test')
|
||||
export PATH="$CARGO_HOME/bin:$othertmpdir/bin:$PATH"
|
||||
|
||||
mkdir -p "$othertmpdir/bin"
|
||||
# Copy it to bin to test use of env var `CARGO`
|
||||
cp "./$1" "$othertmpdir/bin/"
|
||||
|
||||
# Install binaries using cargo-binstall
|
||||
# shellcheck disable=SC2086
|
||||
cargo binstall --no-confirm $crates
|
||||
|
||||
rm -r "$othertmpdir"
|
||||
|
||||
# Test that the installed binaries can be run
|
||||
b3sum --version
|
||||
cargo-release release --version
|
||||
cargo-binstall --help >/dev/null
|
||||
cargo binstall --help >/dev/null
|
||||
cargo watch -V
|
||||
miniserve -V
|
Loading…
Add table
Add a link
Reference in a new issue