From 71684508969225b6892e71794ca50dd7fee7b387 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 22 Jun 2019 23:45:58 -0700 Subject: [PATCH] add rustfmt and packaging steps to azure pipeline --- azure-pipelines.yml | 11 +++++++++-- get-deps | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 853d7c86d..3f4a6d0de 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,10 +1,12 @@ +# A list of vmImage names can be found at: +# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent strategy: matrix: windows-stable: imageName: 'vs2017-win2016' rustup_toolchain: stable mac-stable: - imageName: 'macos-10.13' + imageName: 'macos-10.14' rustup_toolchain: stable linux-stable: imageName: 'ubuntu-16.04' @@ -36,6 +38,7 @@ steps: condition: eq( variables['Agent.OS'], 'Windows_NT' ) - script: | rustup update + rustup component add rustfmt displayName: Update rust toolchains - script: | rustc -vV @@ -49,4 +52,8 @@ steps: displayName: Cargo build - script: cargo test --all displayName: Cargo test - + - script: cargo fmt --all -- --check + displayName: Run Rustfmt + - script: ci/deploy.sh + displayName: Packaging + condition: ne( variables['Agent.OS'], 'Windows_NT' ) diff --git a/get-deps b/get-deps index 0c0100207..1cc122c07 100755 --- a/get-deps +++ b/get-deps @@ -21,6 +21,7 @@ case `lsb_release -ds` in apt-get install -y \ bsdutils \ cmake \ + fakeroot \ libegl1-mesa-dev \ libssl-dev \ libfontconfig1-dev \