diff --git a/.azure/pipelines/jobs/build_and_test_intrinsics.yml b/.azure/pipelines/jobs/build_and_test_intrinsics.yml index 44267cf..232a6b6 100644 --- a/.azure/pipelines/jobs/build_and_test_intrinsics.yml +++ b/.azure/pipelines/jobs/build_and_test_intrinsics.yml @@ -47,6 +47,29 @@ jobs: ./build.sh test displayName: test + - bash: | + export PATH="$(pwd)/dotnet:$PATH" + echo 'installed sdks:' + dotnet --list-sdks + echo "-------------------------------------------------" + + dotnet tool install -g coverlet.console + # Workaround + # https://github.com/Microsoft/azure-pipelines-tasks/issues/8291#issuecomment-441707116 + export PATH="$PATH:$HOME/.dotnet/tools" + + if [[ "$COMPLUS_ENABLEAVX" == "0" ]]; then + export COMPlus_EnableAVX=0 + fi + + if [[ "$COMPLUS_ENABLESSE" == "0" ]]; then + export COMPlus_EnableSSE=0 + fi + + ./build.sh coverage + displayName: code coverage + condition: and(succeeded(), variables['CODECOV_TOKEN'], ne(variables['Agent.OS'], 'Darwin')) + - task: PublishTestResults@2 inputs: testRunner: VSTest