It’s generally known that if you want to run any tests, code analysis, or database project build/deployment that you need to install one or more Team Edition of VSTS on your build server. What’s not so well known are the licensing ramifications around these scenarios.
If the users creating the builds are licensed users of the edition in question (or Team Suite), that license extends to Team Foundation Build and you don’t need to purchase an additional license. One way to think about it is: the people that are using the Team editions need to be properly licensed which in turn ensures the that the build machines are covered as well. Users who merely queue (execute) and review the automated builds are only required to have a Team Foundation Server CAL.