mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 13:41:32 +00:00
Make Clippy Lint a separate step; upgrade all Ubuntu to 18.04
This commit is contained in:
@ -17,18 +17,36 @@ jobs:
|
|||||||
- template: .azure/install-rust.yml
|
- template: .azure/install-rust.yml
|
||||||
- script: |
|
- script: |
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
|
|
||||||
displayName: Lint dependencies
|
displayName: Lint dependencies
|
||||||
- script: cargo fmt --all -- --check && cargo clippy --workspace
|
- script: cargo fmt --all -- --check
|
||||||
displayName: Lint
|
displayName: Lint
|
||||||
variables:
|
variables:
|
||||||
rust_toolchain: '1.39.0'
|
rust_toolchain: '1.39.0'
|
||||||
|
|
||||||
|
- job: clippy_lint
|
||||||
|
pool:
|
||||||
|
vmImage: "ubuntu-18.04"
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: true
|
||||||
|
- template: .azure/install-rust.yml
|
||||||
|
- template: .azure/install-llvm.yml
|
||||||
|
- template: .azure/install-sccache.yml
|
||||||
|
- template: .azure/install-cmake.yml
|
||||||
|
- script: |
|
||||||
|
rustup component add rustfmt
|
||||||
|
rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
|
||||||
|
displayName: Lint dependencies with clippy
|
||||||
|
- script: cargo clippy --workspace
|
||||||
|
displayName: Clippy Lint
|
||||||
|
variables:
|
||||||
|
rust_toolchain: nightly-2019-12-19
|
||||||
|
|
||||||
- job: Test
|
- job: Test
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
linux:
|
linux:
|
||||||
imageName: "ubuntu-16.04"
|
imageName: "ubuntu-18.04"
|
||||||
rust_toolchain: nightly-2019-12-19
|
rust_toolchain: nightly-2019-12-19
|
||||||
mac:
|
mac:
|
||||||
imageName: "macos-10.14"
|
imageName: "macos-10.14"
|
||||||
@ -73,7 +91,7 @@ jobs:
|
|||||||
|
|
||||||
- job: Check
|
- job: Check
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-16.04"
|
vmImage: "ubuntu-18.04"
|
||||||
variables:
|
variables:
|
||||||
rust_toolchain: nightly-2019-12-19
|
rust_toolchain: nightly-2019-12-19
|
||||||
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
|
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
|
||||||
@ -92,7 +110,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
linux:
|
linux:
|
||||||
imageName: "ubuntu-16.04"
|
imageName: "ubuntu-18.04"
|
||||||
rust_toolchain: nightly-2019-12-19
|
rust_toolchain: nightly-2019-12-19
|
||||||
mac:
|
mac:
|
||||||
imageName: "macos-10.14"
|
imageName: "macos-10.14"
|
||||||
@ -159,7 +177,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
linux:
|
linux:
|
||||||
imageName: "ubuntu-16.04"
|
imageName: "ubuntu-18.04"
|
||||||
rust_toolchain: nightly-2019-12-19
|
rust_toolchain: nightly-2019-12-19
|
||||||
mac:
|
mac:
|
||||||
imageName: "macos-10.14"
|
imageName: "macos-10.14"
|
||||||
@ -212,7 +230,7 @@ jobs:
|
|||||||
|
|
||||||
- job: Build_Docs
|
- job: Build_Docs
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-16.04"
|
vmImage: "ubuntu-18.04"
|
||||||
variables:
|
variables:
|
||||||
rust_toolchain: nightly-2019-08-15
|
rust_toolchain: nightly-2019-08-15
|
||||||
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
|
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
|
||||||
@ -287,7 +305,7 @@ jobs:
|
|||||||
- Build_Docs
|
- Build_Docs
|
||||||
displayName: Deploy API Documentation to GitHub
|
displayName: Deploy API Documentation to GitHub
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-16.04"
|
vmImage: "ubuntu-18.04"
|
||||||
condition: in(variables['Build.SourceBranch'], 'refs/heads/master')
|
condition: in(variables['Build.SourceBranch'], 'refs/heads/master')
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
Reference in New Issue
Block a user