我如何学习设置构建流程?
我在学校学到的都是关于编程语言、软件设计,但几乎没有关于如何自动构建软件的知识,可能还集成了单元测试之类的东西。
请告诉我如何开始学习为他的项目设置构建过程。
如果这太抽象而没有任何意义,我会补充一点,我使用 Python 并使用 Django 进行 Web 编程。
提前致谢。
What I was taught at school is all about programming languages, software design, but hardly anything about how to automatically build a software, probably with something like unit testing integrated.
Please tell me how do one start learning to set up a build process for his project.
If this is too abstract to make any sense, I would add that I use Python and do web programming with Django.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我喜欢几本关于这个主题的实用程序员书籍,发布它!并释放它!。他们共同教授了许多现实世界中的实用知识,例如构建系统以及如何设计可良好部署的程序。
I like a couple of Pragmatic Programmers' books on this subject, Ship it! and Release it!. Together, they teach a lot of real-world, pragmatic stuff about such things as build systems and how to design well-deployable programs.
我认为您所指的过程称为持续集成。
Hudson 是流行的工具之一(请参阅 Hudson 与 django)。请务必查看 django-continuous-integration 项目。
I think that the process you are referring to is called continuous integration.
One of the popular tools for that is Hudson (see Hudson with django). Make sure to also check out the django-continuous-integration project.
如果您使用 Java 执行此操作,则可以查看 Maven。有很多相关教程:
全部这属于软件开发原则、软件设计哲学、软件配置管理以及构建和发布管理的类别:
这是一个适度参与的领域。经过多年的编程,我仍在学习和理解有关构建管理和软件配置管理的新知识。
If you're doing this in Java, you can check out Maven. There are a host of tutorials for it:
All of this falls under the category of Software-Development Principles, Software-Design Philosophy, Software-Configuration Management, and Build and Release Management:
It's a moderately-involved field. After years of programming, I'm still learning and understanding new things about build-management and software-configuration management.
对于 Python 项目,您应该使用 setuptools。 setuptools 拥有将内容打包到 .eggs 中、编译 C 模块、运行单元测试等的所有功能...如果您曾经完成过“python setup.py [build|install|test]”,那么您就使用过 setuptools 。
For Python projects you should use setuptools. Setuptools has all the stuff to pack things up into .eggs, compile C modules, run unit tests, etc... If you've ever done "python setup.py [build|install|test]" then you've used setuptools.
虽然这肯定不是您问题的完整答案,但我强烈建议您学习“make”工具。我发现自己经常使用它来完成各种各样的任务,包括(但绝不限于)构建、测试和部署软件。
While this is certainly not a complete answer to your question, I would like to recommend very highly the learning of the tool 'make'. I find myself using it on a VERY regular basis, for a wide variety of tasks, including (but by no means limited to) building, testing, and deploying software.