Created
March 9, 2019 08:47
-
-
Save dorayakikun/e2d26d3e01ff54129fb6edfdad1864eb to your computer and use it in GitHub Desktop.
Azure Pipelines使ってみた_rust_example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
containers: | |
- container: rust | |
image: rust:latest | |
jobs: | |
- job: Linux | |
pool: | |
vmImage: 'ubuntu-16.04' | |
strategy: | |
matrix: | |
stable: | |
rust_toolchain: stable | |
beta: | |
rust_toolchain: beta | |
steps: | |
- script: | | |
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain $RUST_TOOLCHAIN -y | |
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | |
$HOME/.cargo/bin/rustup toolchain remove stable && $HOME/.cargo/bin/rustup toolchain add stable | |
$HOME/.cargo/bin/rustup component add rustfmt | |
$HOME/.cargo/bin/rustup component add clippy | |
displayName: Install rustup | |
- script: cargo fmt --all -- --check | |
displayName: Run formatter | |
- script: cargo clippy -- -D warnings | |
displayName: Run linter | |
- script: cargo build | |
displayName: Build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment