mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 23:00:03 +00:00
Test default pkg-url
for GitLab and BitBucket (#322)
* Test default `pkt-url` for GitLab and BitBucket * Fail if `cargo-build` is called when testing GitLab/BitBucket * Fix use of `remote_exists` in `GhCrateMeta::launch_baseline_find_tasks` If `Method::HEAD` fails, try `Method::GET` since some servers reject `Method::HEAD`, e.g. bbuseruploads.s3.amazonaws.com Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
f973d32ff6
commit
e39a02aa92
5 changed files with 58 additions and 3 deletions
19
.github/scripts/tests.sh
vendored
19
.github/scripts/tests.sh
vendored
|
@ -58,3 +58,22 @@ cargo binstall --help >/dev/null
|
|||
"./$1" binstall --no-confirm cargo-binstall@0.11.0
|
||||
"./$1" binstall --no-confirm cargo-binstall@0.11.0 | grep -q 'cargo-binstall v0.11.0 is already installed'
|
||||
"./$1" binstall --no-confirm cargo-binstall@^0.11.0 | grep -q -v 'cargo-binstall v0.11.0 is already installed'
|
||||
|
||||
# Test default GitLab pkg-url templates
|
||||
test_resources=".github/scripts"
|
||||
PATH="$test_resources/fake-cargo:$PATH"
|
||||
|
||||
"./$1" binstall \
|
||||
--force \
|
||||
--manifest-path "$test_resources/gitlab-test-Cargo.toml" \
|
||||
--log-level debug \
|
||||
--no-confirm \
|
||||
cargo-binstall
|
||||
|
||||
# Test default BitBucket pkg-url templates
|
||||
"./$1" binstall \
|
||||
--force \
|
||||
--manifest-path "$test_resources/bitbucket-test-Cargo.toml" \
|
||||
--log-level debug \
|
||||
--no-confirm \
|
||||
cargo-binstall
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue