diff --git a/azure/stages.yml b/azure/stages.yml index 9908f66..24d8c8d 100644 --- a/azure/stages.yml +++ b/azure/stages.yml @@ -4,6 +4,7 @@ parameters: prefix: '' envs: {} setup: [] + smoketests: true stages: # the format here is so that we can have _two_ instances of this whole @@ -46,6 +47,7 @@ stages: parameters: envs: ${{ parameters.envs }} setup: ${{ parameters.setup }} + smoketests: ${{ parameters.smoketests }} - stage: ${{ format('{0}style', parameters.prefix) }} ${{ if ne(parameters.prefix, '') }}: displayName: ${{ format('Style linting ({0})', parameters.prefix) }} @@ -56,6 +58,7 @@ stages: - template: style.yml parameters: setup: ${{ parameters.setup }} + 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 aa4c899..ee80546 100644 --- a/azure/style.yml +++ b/azure/style.yml @@ -1,27 +1,31 @@ parameters: setup: [] + 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 setup: ${{ parameters.setup }} - - template: cargo-clippy.yml - parameters: - name: clippy_nowarnings - fail_all: true - allow_fail: true - - template: cargo-clippy.yml - parameters: - name: clippy_beta - setup: ${{ parameters.setup }} - 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 + setup: ${{ parameters.setup }} + rust: beta + allow_fail: true diff --git a/azure/tests.yml b/azure/tests.yml index b7be1b0..ecf747f 100644 --- a/azure/tests.yml +++ b/azure/tests.yml @@ -1,6 +1,7 @@ parameters: envs: {} setup: [] + smoketests: true jobs: - template: test.yml @@ -15,10 +16,11 @@ jobs: rust: beta envs: ${{ parameters.envs }} setup: ${{ parameters.setup }} - - template: test.yml - parameters: - name: cargo_test_nightly - rust: nightly - allow_fail: true - envs: ${{ parameters.envs }} - setup: ${{ parameters.setup }} + - ${{ if eq(parameters.smoketests, 'true') }}: + - template: test.yml + parameters: + name: cargo_test_nightly + rust: nightly + allow_fail: true + envs: ${{ parameters.envs }} + setup: ${{ parameters.setup }}