问题描述
在我公司,我们目前使用 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来运行测试套件以及使用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工作的信息与哈德森.还可以查看 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与Django& Python-可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!