fix(cargo)

closes #4623
This commit is contained in:
Jacob Heider 2023-12-28 15:36:38 -05:00 committed by Jacob Heider
parent c0973b0a46
commit 992595929b

View file

@ -50,12 +50,14 @@ test:
dependencies: #FIXME brewkit should add companions to the test env dependencies: #FIXME brewkit should add companions to the test env
git-scm.org: ^2 git-scm.org: ^2
rust-lang.org: '*' rust-lang.org: '*'
script: | script:
cargo init . --name xyz_tea_fixture - cargo init . --name xyz_tea_fixture
echo 'fn main() {println!("Hello World!");}' >src/main.rs - echo 'fn main() {println!("Hello World!");}' >src/main.rs
cargo clippy - cargo clippy
cargo run - cargo run
cargo run --release - cargo run --release
cargo install cowsay # use our $HOME
test -x ~/.local/bin/cowsay - export CARGO_INSTALL_ROOT=$HOME/.local
~/.local/bin/cowsay xyz.tea.hi - cargo install cowsay
- test -x ~/.local/bin/cowsay
- ~/.local/bin/cowsay xyz.tea.hi