[2.x.x] CI Improvements (#2963)

This commit is contained in:
Quentin Le Sceller 2019-07-23 16:25:25 +02:00 committed by GitHub
parent fb33d3af1f
commit 298e3caae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View file

@ -1,11 +1,8 @@
steps: steps:
- script: | - script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
git apply .ci/win.patch git apply .ci/win.patch
choco install -y llvm choco install -y llvm
displayName: Windows Install Rust displayName: Windows Install LLVM
condition: eq( variables['Agent.OS'], 'Windows_NT' ) condition: eq( variables['Agent.OS'], 'Windows_NT' )
- script: | - script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y curl https://sh.rustup.rs -sSf | sh -s -- -y
@ -13,9 +10,7 @@ steps:
displayName: macOS Install Rust displayName: macOS Install Rust
condition: eq( variables['Agent.OS'], 'Darwin' ) condition: eq( variables['Agent.OS'], 'Darwin' )
- script: | - script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
sudo apt-get update -yqq sudo apt-get update -yqq
sudo apt-get install -yqq --no-install-recommends libncursesw5-dev sudo apt-get install -yqq --no-install-recommends libncursesw5-dev
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" displayName: Linux Install Dependencies
displayName: Linux Install Rust and Dependencies
condition: eq( variables['Agent.OS'], 'Linux' ) condition: eq( variables['Agent.OS'], 'Linux' )

View file

@ -26,7 +26,7 @@ pr:
variables: variables:
RUST_BACKTRACE: '1' RUST_BACKTRACE: '1'
RUST_FLAGS: '-C debug-assertions' RUSTFLAGS: '-C debug-assertions'
jobs: jobs:
- job: linux - job: linux
@ -55,7 +55,7 @@ jobs:
- template: '.ci/release.yml' - template: '.ci/release.yml'
- job: macos - job: macos
pool: pool:
vmImage: macos-10.13 vmImage: macos-10.14
strategy: strategy:
matrix: matrix:
test: test:
@ -69,7 +69,7 @@ jobs:
- template: '.ci/release.yml' - template: '.ci/release.yml'
- job: windows - job: windows
pool: pool:
vmImage: vs2017-win2016 vmImage: windows-2019
strategy: strategy:
matrix: matrix:
test: test: