- Create a virtual-env on the server hosting your TeamCity installation.
- Install teamcity-messages in your virtual-env.
- Create a new project in TeamCity. See this page for more details.
- Setup your VCS root(s). This may not be the best approach, but for dependent Python projects, I create VCS roots for every dependent projects so that all dependencies are satisfied within the project. You may have to define VCS roots in a parent TeamCity project if they are shared among several dependent projects.
- Create a build configuration.
- Attach relevant VCS roots in the "Version Control Settings" page.
- Create a new build step with "Command Line" as the runner type.
- Enter the script content so that you invoke your virtual-env's nosetests.exe.

- Add a new trigger in the Triggers page.

- You can manually schedule a build now or wait for TeamCity to build automatically.
Wednesday, February 17, 2016
Continuous integration with Python on TeamCity
Here is how we can configure TeamCity 9.1.3 (build 37176) to perform continuous integration on Python 2 projects. I assume that you have already installed Python 2 (2.6 and above), virtual-env, TeamCity, and have access to your code in a version control system. Unit tests written in Nose seem to work well in TeamCity.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment