在我的公司,我们目前使用 Atlassian Bamboo 作为我们的持续集成工具.我们目前在所有项目中都使用 Java,所以效果很好.
At my company, we currently use Atlassian Bamboo for our continuous integration tool. We currently use Java for all of our projects, so it works great.
但是,我们正在考虑将 Django + Python 用于我们的一个新应用程序.我想知道是否可以为此使用 Bamboo.
However, we are considering using a Django + Python for one of our new applications. I was wondering if it is possible to use Bamboo for this.
首先,让我说我对 Bamboo 的熟悉程度很低,因为我只使用过它,没有配置它(除了简单的更改,比如更改构建的 svn checkout 目录).
First off, let me say that I have a low level of familiarity with Bamboo, as I've only ever used it, not configured it (other than simple changes like changing the svn checkout directory for a build).
显然,仅仅运行构建并没有什么意义(因为 Python 项目并没有真正构建),但我希望能够使用 Bamboo 来运行测试套件,以及使用竹子以我们处理 Java 项目的方式将最新代码部署到我们的各种测试环境.
Obviously there isn't a lot of point in just running a build (since Python projects don't really build), but I'd like to be able to use Bamboo for running the test suite, as well as use bamboo to deploy the latest code to our various test environments the way we do with our Java projects.
Bamboo 是否在 Python 项目中支持这种类型的东西?
Does Bamboo support this type of thing with a Python project?
Bamboo 本质上只是运行一个 shell 脚本,所以这很容易:
Bamboo essentially just runs a shell script, so this could just as easily be:
./manage.py test
通常是这样的:
mvn clean install
或:
ant compile
您可能需要将 Django 测试运行程序的输出转换为传统的 JUnit XML 输出,以便 Bamboo 可以为您提供关于通过了多少测试的漂亮图表.查看这篇文章,了解如何使用 xmlrunner.py 让 Python 工作与 Hudson.另请查看 NoseXUnit一个>.
You may have to massage to output of the Django test runner into traditional JUnit XML output, so that Bamboo can give you pretty graphs on how many tests passed. Look at this post about using xmlrunner.py to get Python working with Hudson. Also take a look at NoseXUnit.
这篇关于Atlassian Bamboo with Django &Python - 可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!