设置新的 CI 存储库需要多长时间?
通常需要多长时间?
- 我想知道:专业人士
- 、平均水平、
- 初学者
为新项目设置和配置 CI
I wonder how long it would usually take for:
- Professional
- Average
- Beginner
to setup and configure CI for a new project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我以前从未建立过 CI,这使我完全属于“初学者”类别。 你的问题促使我尝试为我的项目设置一个 CI 系统; 我一直避免这样做,因为我认为这会花费我很多精力和时间。
我花了整整20分钟。
我使用了一个名为 CInABox(盒子中的持续集成) 的非常棒项目。 它由两个简单的脚本组成,用于下载和编译 Ruby,以及下载、安装和配置 Ubuntu 8.04 的 CruiseControl.rb 。
在短短 20 分钟内,我下载了 Ubuntu JeOS 8.04,配置了 VirtualBox VM,在该 VM 中安装了 Ubuntu,设置了网络,安装了 Ruby,安装了 CruiseControl.rb,将我的第一个项目添加到 CC.rb,然后看着灯变绿! 大部分时间实际上花在了下载 Ubuntu、下载 Ruby 和安装 Ubuntu 上。 实际 CI 设置花费了不到 5 分钟。
不要让这个名字欺骗您:CC.rb 是用 Ruby 编写的,但您可以用它构建任何东西。 在默认配置中,它假定您使用
rake
来构建项目,但通过仅设置一个配置选项,您也可以使用 shell 脚本。I have never set up CI before, which puts me squarely in your "Beginner" category. Your question nudged me to try and setup a CI system for my projects; something which I've always avoided, because I thought it would cost me a lot of effort and time.
It took me all of 20 minutes.
I used a fantastic project called CInABox (Continuous Integration in a Box). It consists of two simple scripts which download and compile Ruby and download, install and configure CruiseControl.rb for Ubuntu 8.04.
In just 20 minutes, I downloaded Ubuntu JeOS 8.04, configured a VirtualBox VM, installed Ubuntu in that VM, setup networking, installed Ruby, installed CruiseControl.rb, added my first project to CC.rb and watched the light go green! The most time was actually spent downloading Ubuntu, downloading Ruby and installing Ubuntu. The actual CI setup took less than 5 minutes.
Don't let the name fool you: CC.rb is written in Ruby, but you can build anything with it. In the default configuration, it assumes that you are using
rake
to build your project, but by setting just one configuration option, you can just as well use a shell script.这取决于您已经拥有多少其他基础设施,以及您是否在将所有内容连接在一起时遇到问题。 即使考虑到这一点,您也应该能够启动并运行 TeamCity 和所有基础设施如果您对自己正在做的事情有一个很好的了解,那么在一天左右的时间内。 该文档对于 TeamCity 来说非常好,应该可以帮助您克服任何障碍。
It depends on how much other infrastructure you already have in place and whether you have issues tying everything together. Even with that in mind, you should be able to get TeamCity and all the infrastructure up and and running within a day or so if you have a decent idea of what you're doing. The documentation is pretty good for TeamCity and should get you past any bumps.
CI Factory
TeamCity
CC.NET 示例配置
尝试一下。
CI Factory
TeamCity
CC.NET sample configs
Try.
这取决于多种因素:
只是说几句。
我认为,如果项目不是一个小事,那么为 CI 环境花费的所有时间都是值得的。 无论是20分钟还是3天。
It depends on may factors:
just to say a few.
I think that if project is not a trivial, then all this time spent for the CI environment is worth the price. Whether it is 20 minutes or 3 days.