2019-08-05 17:52:42 +03:00
|
|
|
pr: ["master"]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job:
|
|
|
|
pool:
|
|
|
|
vmImage: vs2017-win2016
|
|
|
|
steps:
|
2019-08-05 17:53:48 +03:00
|
|
|
- template: ./.ci/install-rust.yml
|
2019-08-05 17:52:42 +03:00
|
|
|
parameters:
|
|
|
|
rust_version: stable
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
set -ex
|
|
|
|
export RUST_BACKTRACE=1
|
2019-08-29 20:35:42 +03:00
|
|
|
cargo fmt --all -- --check
|
2019-08-29 23:19:27 +03:00
|
|
|
RUSTFLAGS="-D warnings" cargo check --all
|
2019-08-29 20:35:42 +03:00
|
|
|
cargo test --all
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
set -ex
|
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
for dir in examples/*
|
|
|
|
do
|
|
|
|
cd $dir
|
|
|
|
cargo fmt --all -- --check
|
2019-08-29 23:19:27 +03:00
|
|
|
RUSTFLAGS="-D warnings" cargo check --all
|
2019-08-29 20:35:42 +03:00
|
|
|
cargo test --all
|
2019-08-29 20:53:47 +03:00
|
|
|
cd ../..
|
2019-08-29 20:35:42 +03:00
|
|
|
done
|