Files
starship/azure-pipelines.yml
T

74 lines
1.9 KiB
YAML
Raw Normal View History

2019-04-03 23:33:19 -04:00
jobs:
# Run the Rust linter
2019-04-03 23:33:19 -04:00
- job: "Clippy"
pool:
vmImage: "ubuntu-16.04"
container: "rust:latest"
steps:
- script: rustup component add clippy
displayName: Install Clippy
- script: cargo clippy --all
displayName: Run clippy
2019-04-03 23:20:55 -04:00
# Run the Rust formatter
2019-04-03 23:33:19 -04:00
- job: "Rustfmt"
pool:
vmImage: "ubuntu-16.04"
container: "rust:latest"
condition: eq(variables['Build.Reason'], 'PullRequest')
steps:
- script: rustup component add rustfmt
displayName: Install Rustfmt
- script: cargo fmt --all -- --check
displayName: Run rustfmt
2019-04-03 23:20:55 -04:00
# Run the integration tests in a Docker container
- job: "Docker"
pool:
vmImage: "ubuntu-16.04"
steps:
- script: ./integration_test
displayName: Dockerized tests
# Run the integration tests on virtual machines
2019-04-03 23:33:19 -04:00
- job: "Test"
strategy:
matrix:
windows-stable:
imageName: "vs2017-win2016"
RUSTUP_TOOLCHAIN: stable
2019-04-03 23:33:19 -04:00
mac-stable:
imageName: "macos-10.13"
RUSTUP_TOOLCHAIN: stable
2019-04-03 23:33:19 -04:00
linux-stable:
imageName: "ubuntu-16.04"
RUSTUP_TOOLCHAIN: stable
2019-04-03 23:33:19 -04:00
linux-beta:
imageName: "ubuntu-16.04"
RUSTUP_TOOLCHAIN: beta
2019-04-03 23:33:19 -04:00
linux-nightly:
imageName: "ubuntu-16.04"
RUSTUP_TOOLCHAIN: nightly
2019-04-03 23:33:19 -04:00
pool:
vmImage: "ubuntu-16.04"
steps:
# Install Node.js
- task: NodeTool@0
2019-04-28 13:34:46 -04:00
inputs:
versionSpec: "12.0.0"
2019-05-12 04:58:45 +01:00
# Install Go
- task: GoTool@0
inputs:
versionSpec: "1.10"
# Install Python
- task: UsePythonVersion@0
inputs:
versionSpec: "3.7.2"
# Install Rust
- template: ".build/install-rust.yml"
- script: cargo build
2019-04-03 23:33:19 -04:00
displayName: Cargo build
- script: cargo test -- --ignored
2019-04-03 23:33:19 -04:00
displayName: Cargo test