Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install a fixed version of rust for CI integration tests (#39)
- Loading branch information
Matan Kushner
committed
May 1, 2019
1 parent
0b9334f
commit d945b03
Showing
3 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
parameters: | ||
versionSpec: "" | ||
|
||
steps: | ||
# Install Rust at a fixed version for integration tests to pass | ||
- script: | | ||
curl -sSf -o rustup-init.exe https://win.rustup.rs | ||
rustup-init.exe -y --default-toolchain ${{ parameters.versionSpec }} | ||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" | ||
displayName: Windows install Rust | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
- script: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain ${{ parameters.versionSpec }} | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
displayName: Install a fixed version of Rust | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
# Install the version of Rust used for testing with | ||
- script: rustup install $RUSTUP_TOOLCHAIN | ||
displayName: Install Rust used for CI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters