diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml index fb58390aa5..25a0b6b6eb 100644 --- a/.azure/azure-pipelines.yml +++ b/.azure/azure-pipelines.yml @@ -4,25 +4,25 @@ trigger: strategy: matrix: linux-stable: - image: ubuntu-16.04 + image: ubuntu-18.04 style: 'unflagged' macos-stable: image: macos-10.14 style: 'unflagged' windows-stable: - image: vs2017-win2016 + image: windows-2019 style: 'unflagged' linux-nightly-canary: - image: ubuntu-16.04 + image: ubuntu-18.04 style: 'canary' macos-nightly-canary: image: macos-10.14 style: 'canary' windows-nightly-canary: - image: vs2017-win2016 + image: windows-2019 style: 'canary' fmt: - image: ubuntu-16.04 + image: ubuntu-18.04 style: 'fmt' pool: @@ -35,12 +35,14 @@ steps: then sudo apt-get -y install libxcb-composite0-dev libx11-dev fi - curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain "stable" - export PATH=$HOME/.cargo/bin:$PATH - rustup update + if [ "$(uname)" == "Darwin" ]; then + curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain "stable" + export PATH=$HOME/.cargo/bin:$PATH + rustup update + fi rustc -Vv echo "##vso[task.prependpath]$HOME/.cargo/bin" - rustup component add rustfmt --toolchain "stable" + rustup component add rustfmt displayName: Install Rust - bash: RUSTFLAGS="-D warnings" cargo test --all --features=stable condition: eq(variables['style'], 'unflagged')