You can use the tasks in build and deployment plans.
You can add following tasks in build plan:
You can run any build plan from deployment plan using Build Task or can run any build plan with intesgration tests from deployment plan. Deployment can be passed or failed based on integration tests results.
Rest API are experimental to perform the same tasks
Read next Build Task