“彻底”,有关设置 Jetbrain TeamCity CI 服务器的教程
有谁知道在哪里可以找到一个很好的教程来指导我如何设置 TeamCity CI 服务器? 我对单元测试和敏捷开发哲学很陌生,所以我需要一些帮助来入门。 我正在使用 NUnit 处理 Asp.NET 代码进行单元测试,并且更喜欢 TeamCity 服务器的 Windows 环境。 请注意,我不知道如何为构建配置 NANT 或连续构建所需的任何其他内容。 我刚刚对 .NET 代码进行了单元测试。
Does anyone know where I can find a good tutorial to walk me through how to setup TeamCity CI server? I am new to unit testing and the agile philosophy of development so I could use some help getting my feet wet. I'm working with Asp.NET code using NUnit for my unit tests and would prefer a windows environment for the TeamCity server. Please note that I have no idea how to configure NANT for the build or anything else needed to have continuous builds. I just have unit tested .NET code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
DimeCasts.net 的人员有一个很好的 TeamCity 教程。
The folks at DimeCasts.net have a nice TeamCity tutorial.
请注意,TeamCity 还可以使用 MSBuild,它可以运行 Visual Studio .sln 文件。 这是一个很好的起点,只需让构建服务器运行使用 MSBuild 调用 .sln 文件的构建脚本即可。
我们在 Build 目录中签入构建脚本,并且确保使用相对路径,因此任何人都可以运行构建。 我们有大约 140 个项目(托管和非托管)以及许多其他活动(例如,从元数据自动生成类和对象)。
此外,当第一次设置 CI 服务器时,请准备好非常熟悉您的构建。 在最初的几周里,当出现问题时,人们可能会将其归咎于 CI 服务器,而不是检查损坏的代码。 了解您的构建并使其尽可能简单将有助于整个团队专注于更好地集成。
Note that TeamCity can also use MSBuild, which can run Visual Studio .sln files. That's a great place to start when getting your feet wet - just have the build server run your build script that uses MSBuild to call your .sln file.
We check in our build script in a Build directory, and we are sure to use relative paths, so anyone can run the build. We have around 140 projects (both managed and unmanaged) plus a host of other activities (auto-generation of classes and objects from metadata for example).
Also, when setting up a CI server for the first time, prepare to become very familiar with your build. For the first several weeks, when something breaks people may blame it on the CI server instead of checking in broken code. Understanding your build and keeping it as simple as possible will help the whole team focus on integrating better.
我发现了一系列关于设置 TeamCity 的精彩一系列博客文章,颠覆与颠覆 Web 部署。 它节省了我大量的时间。
I found an excellent series of blog posts on setting up TeamCity, Subversion & Web Deploy. It saved me loads of time.
nunit 是一个很好的起点,因为它与 teamcity 配合得很好。
teamcity 的设置非常好,如果有任何问题,请发回它,
这里有一些链接可以帮助
nunit is a good place to start because it works well with teamcity.
teamcity is really nice to setup, post back it you have any problems with it
here's some links to help
我写了一篇很长的 关于如何使用 ASP.Net 和 Web 部署项目执行此操作的帖子 - 听起来很适合您(不知道我是否可以发布此内容 - mods?):
I've written a pretty long post on how to do this with ASP.Net and web deployment projects - sounds right up your alley (don't know if I'm allowed to post this - mods?):
我在“Pete W.'s Idea Book”博客中发现了一篇文章,它对于我设置 TeamCity 和 Visual SVN 非常有用。
VisualSVN + TeamCity + NAnt + SQL Server
甚至讨论了如何让 SQL Server 2005 与 TeamCity 一起工作(不过,我相信它可以在 TeamCity 4.x 中开箱即用)。 与 NAnt 的集成也有帮助。
这是一篇很好的介绍和教程文章。
I found an article at "Pete W.'s Idea Book" blog that was invaluable to setting up TeamCity and Visual SVN for me.
VisualSVN + TeamCity + NAnt + SQL Server
Even talks about getting SQL Server 2005 working with TeamCity (although, I believe it works out of the box with TeamCity 4.x). Integration with NAnt helped, too.
This is a good introduction and tutorial article.
我最近写了一个 关于使用 TeamCity 发布 winforms ClickOnce 部署的帖子。 你没有具体提到你需要用你的 CI 环境构建什么样的东西,所以我不知道它的适用性如何。 前言:
I recently wrote a post on publishing winforms ClickOnce deployments with TeamCity. You don't mention exactly what kind of stuff you need to build with your CI environment, so I don't know how applicable it is. FWIW: