Late answer, but may be useful for readers of this topic:
I did a little online research and found a step-by-step guide that might help with your problem.
This tutorial describes the basics of continuous integration (CI) and the means to create a new database whenever a new change is found on the original checkout repository, do the unit tests with the database, and synchronize the test database with the QA environment.
A prerequisite for the implementation of continuous integration (CI) in the database development process is the availability of a database under source control.
source share