用于挖掘机的Aerogear Build客户端
abcd的Python项目详细描述
用法
完整文档位于 http://digger-build-cli.readthedocs.io。
要求
如果在容器外运行:
下载并安装conda:http://conda.pydata.org/miniconda.html
克隆存储库后运行:
conda env create -f env.yaml python=3.5.1
要激活环境运行(可能需要新的终端窗口或 重新加载bashrc/bash配置文件:
source activate digger
您还需要node 4.x、npm、cordova>;=6和java 8 机器。
在容器外运行需要一些要求:
安装
python setup.py install
测试
要求
安装开发依赖项:
pip install -r requirements.txt
测试将从github存储库(master)下载所有模板
并将尝试构建它。
如果在容器外运行
准备
# create a folder for Gradle cache mkdir /gradle-cache # make sure you have write permissions chown -R ${USER} /gradle-cache
另外,确保您的机器上有android sdk,并且 $ANDROID_HOME已设置。
设置.py
python setup.py test
直接使用py.test(来自Digger项目根文件夹)
py.test -s
运行单个测试
例如:
py.test -s tests/test_build.py