Skip to content

Commit

Permalink
Make it easy to disable all smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jul 16, 2019
1 parent f776a8b commit 66a8694
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
4 changes: 4 additions & 0 deletions azure/stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) }}
Expand All @@ -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, '') }}:
Expand Down
36 changes: 21 additions & 15 deletions azure/style.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 8 additions & 6 deletions azure/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
envs: {}
smoketests: true

jobs:
- template: test.yml
Expand All @@ -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 }}

0 comments on commit 66a8694

Please sign in to comment.