Yeah, close to deploy is different. What does a CI tool do in this case? I'm somewhat unfamiliar with the concept.
Basically, by integrating this into your CI tool, you ensure that all your tests / deploys run through a standardized and pristine environment.