Atlassian Bamboo with Django amp; Python - Possible?(Atlassian Bamboo with Django amp;Python - 可能吗?)
问题描述
在我的公司,我们目前使用 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 - 可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Atlassian Bamboo with Django &Python - 可能吗?


基础教程推荐
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 求两个直方图的卷积 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01