approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
316 stars 51 forks source link

Add support for Azure Pipelines CI system #117

Closed claremacrae closed 4 years ago

claremacrae commented 4 years ago

A user is running on Azure Pipelines CI system - so it would be good to have this detected automatically.

I'm struggling to spot the list of environment variables set for this in the following...

https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&viewFallbackFrom=vsts&tabs=yaml

claremacrae commented 4 years ago

The variable to use is TF_BUILD

https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&viewFallbackFrom=vsts&tabs=yaml says:

TF_BUILD Set to True if the script is being run by a build task.

This variable is agent-scoped, and can be used as an environment variable in a script and as a parameter in a build task, but not as part of the build number or as a version control tag.

claremacrae commented 4 years ago

This is fixed, and documented - and will be included in the next release.