From 66a869447a3fcaae777e9148f32427b5e077c548 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Tue, 16 Jul 2019 10:36:38 -0400 Subject: [PATCH] Make it easy to disable all smoke tests --- azure/stages.yml | 4 ++++ azure/style.yml | 36 +++++++++++++++++++++--------------- azure/tests.yml | 14 ++++++++------ 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/azure/stages.yml b/azure/stages.yml index 84dbb22..134c5d1 100644 --- a/azure/stages.yml +++ b/azure/stages.yml @@ -3,6 +3,7 @@ parameters: benches: false prefix: '' envs: {} + smoketests: true stages: # the format here is so that we can have _two_ instances of this whole @@ -42,6 +43,7 @@ stages: - template: tests.yml parameters: envs: ${{ parameters.envs }} + smoketests: ${{ parameters.smoketests }} - stage: ${{ format('{0}style', parameters.prefix) }} ${{ if ne(parameters.prefix, '') }}: displayName: ${{ format('Style linting ({0})', parameters.prefix) }} @@ -50,6 +52,8 @@ stages: dependsOn: ${{ format('{0}check', parameters.prefix) }} jobs: - template: style.yml + parameters: + smoketests: ${{ parameters.smoketests }} - ${{ if ne('', parameters.codecov_token) }}: - stage: ${{ format('{0}coverage', parameters.prefix) }} ${{ if ne(parameters.prefix, '') }}: diff --git a/azure/style.yml b/azure/style.yml index f0d51c3..76a18e2 100644 --- a/azure/style.yml +++ b/azure/style.yml @@ -1,22 +1,28 @@ +parameters: + smoketests: true + jobs: - template: rustfmt.yml parameters: name: rustfmt - - template: rustfmt.yml - parameters: - name: rustfmt_beta - rust: beta - allow_fail: true + - ${{ if eq(parameters.smoketests, 'true' }}: + - template: rustfmt.yml + parameters: + name: rustfmt_beta + rust: beta + allow_fail: true - template: cargo-clippy.yml parameters: name: clippy - - template: cargo-clippy.yml - parameters: - name: clippy_nowarnings - fail_all: true - allow_fail: true - - template: cargo-clippy.yml - parameters: - name: clippy_beta - rust: beta - allow_fail: true + - ${{ if eq(parameters.smoketests, 'true' }}: + - template: cargo-clippy.yml + parameters: + name: clippy_nowarnings + fail_all: true + allow_fail: true + - ${{ if eq(parameters.smoketests, 'true' }}: + - template: cargo-clippy.yml + parameters: + name: clippy_beta + rust: beta + allow_fail: true diff --git a/azure/tests.yml b/azure/tests.yml index 7b775a5..52791de 100644 --- a/azure/tests.yml +++ b/azure/tests.yml @@ -1,5 +1,6 @@ parameters: envs: {} + smoketests: true jobs: - template: test.yml @@ -12,9 +13,10 @@ jobs: name: cargo_test_beta rust: beta envs: ${{ parameters.envs }} - - template: test.yml - parameters: - name: cargo_test_nightly - rust: nightly - allow_fail: true - envs: ${{ parameters.envs }} + - ${{ if eq(parameters.smoketests, 'true' }}: + - template: test.yml + parameters: + name: cargo_test_nightly + rust: nightly + allow_fail: true + envs: ${{ parameters.envs }}