Files
runner-images-sangeeth/images/macos/provision/core/rust.sh
Darii Nurgaleev 03ce901f42 [macOS] Pester tests invocation after install - 2. (#2429)
* [macOS] Fail Pester tests on error

* return it back

* added new tests

* added new tests for Macos part2

* fixed nitpicks

* vsmac changes

* remove toolcache fron high sierra
2021-01-20 10:11:00 +03:00

22 lines
538 B
Bash

#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
source ~/utils/invoke-tests.sh
echo Installing Rustup...
brew_smart_install "rustup-init"
echo Installing Rust language...
rustup-init -y --no-modify-path --default-toolchain=stable --profile=minimal
echo Initialize environment variables...
CARGO_HOME=$HOME/.cargo
echo Install common tools...
rustup component add rustfmt clippy
cargo install bindgen cbindgen cargo-audit cargo-outdated
echo Cleanup Cargo registry cached data...
rm -rf $CARGO_HOME/registry/*
invoke_tests "Rust"