|
| 1 | +# Starter pipeline |
| 2 | +# Start with a minimal pipeline that you can customize to build and deploy your code. |
| 3 | +# Add steps that build, run tests, deploy, and more: |
| 4 | +# https://aka.ms/yaml |
| 5 | + |
| 6 | +trigger: |
| 7 | +- master |
| 8 | +pr: |
| 9 | +- master |
| 10 | + |
| 11 | +strategy: |
| 12 | + matrix: |
| 13 | + linux: |
| 14 | + imageName: 'ubuntu-16.04' |
| 15 | + mac: |
| 16 | + imageName: 'macos-10.13' |
| 17 | + windows: |
| 18 | + imageName: 'vs2017-win2016' |
| 19 | + |
| 20 | +pool: |
| 21 | + vmImage: $(imageName) |
| 22 | + |
| 23 | +variables: |
| 24 | + CARGO_INCREMENTAL: 0 |
| 25 | + RUST_BACKTRACE: 1 |
| 26 | + RLS_TEST_WAIT_FOR_AGES: 1 |
| 27 | + |
| 28 | +steps: |
| 29 | +- script: rustup default nightly |
| 30 | + displayName: Install nightly toolchain |
| 31 | +- script: rustup component add rustfmt |
| 32 | + displayName: 'Add Rustfmt to enforce consistent formatting' |
| 33 | +- script: rustup component add rust-src rust-analysis |
| 34 | + displayName: 'Install distributed Rust source code for Racer autocompletion' |
| 35 | +- script: (cd rls-analysis && cargo test -v && cargo fmt -- --check) |
| 36 | + displayName: Test rls-analysis |
| 37 | +- script: (cd rls-data && cargo test -v && cargo fmt -- --check) |
| 38 | + displayName: Test rls-data |
| 39 | +- script: (cd rls-rustc && cargo test -v && cargo fmt -- --check) |
| 40 | + displayName: Test rls-rustc |
| 41 | +- script: (cd rls-span && cargo test -v && cargo fmt -- --check) |
| 42 | + displayName: Test rls-span |
| 43 | +- script: (cd rls-vfs && cargo test -v && cargo fmt -- --check) |
| 44 | + displayName: Test rls-vfs |
| 45 | +- script: cargo fmt -- --check |
| 46 | +- script: cargo build -v |
| 47 | +- script: cargo test -v |
| 48 | +- script: cargo test test_tooltip_std -- --ignored |
0 commit comments