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 0cc8254 commit 2a5d0a8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 23 deletions.
3 changes: 3 additions & 0 deletions azure/stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) }}
Expand All @@ -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, '') }}:
Expand Down
36 changes: 20 additions & 16 deletions azure/style.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 9 additions & 7 deletions azure/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
parameters:
envs: {}
setup: []
smoketests: true

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

0 comments on commit 2a5d0a8

Please sign in to comment.