mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-02 00:52:56 +00:00

* fix ci: temporarily disable bitbucket testing as bitbucket is down fix ci Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fix other-repos.sh Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fix other-repos.sh (#2172) Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --------- Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
51 lines
1.3 KiB
Bash
Executable file
51 lines
1.3 KiB
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"
|
|
|
|
# Test default GitLab pkg-url templates
|
|
#"./$1" binstall \
|
|
# --force \
|
|
# --manifest-path "manifests/gitlab-test-Cargo.toml" \
|
|
# --no-confirm \
|
|
# --disable-strategies compile \
|
|
# cargo-binstall
|
|
|
|
# temporarily disable bitbucket testing as bitbucket is down
|
|
## Test default BitBucket pkg-url templates
|
|
#"./$1" binstall \
|
|
# --force \
|
|
# --manifest-path "manifests/bitbucket-test-Cargo.toml" \
|
|
# --no-confirm \
|
|
# --disable-strategies compile \
|
|
# 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" ]
|
|
|
|
# Test default Github pkg-url templates,
|
|
# with bin-dir provided
|
|
"./$1" binstall \
|
|
--force \
|
|
--manifest-path "manifests/github-test-Cargo2.toml" \
|
|
--no-confirm \
|
|
--disable-strategies compile \
|
|
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" ]
|