Run code coverage on Azure Pipelines
@@ -9,6 +9,9 @@ strategy:
rustup_toolchain: beta
steps:
+ - script: export CARGO_MAKE_RUN_CODECOV="true" && export CODECOV_TOKEN=$(CODECOV_TOKEN)
+ displayName: Set up environment variables
+
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
@@ -17,8 +20,14 @@ steps:
- script: cargo install --debug cargo-make
displayName: Install cargo-make
- - script: cargo make --no-workspace workspace-ci-flow
- displayName: Build and test
+ - script: cargo build
+ displayName: Build
+
+ - script: cargo test
+ displayName: Test
+
+ - script: CODECOV_TOKEN=$(CODECOV_TOKEN) cargo make --no-workspace workspace-coverage
+ displayName: Run test coverage
- script: rustup component add rustfmt
displayName: Install rustfmt
