独奏
solo的Python项目详细描述
主机先决条件
- 流浪者=1.8
- python 2.7.x(ansibe cli必需);
- ansible=2.0
引导开发环境
运行
$ git clone https://github.com/avanov/solo.git <local_project_root> $ cd <local_project_root> $ vagrant up
运行开发服务器
设置新虚拟机后,运行
$ vagrant ssh vagrant@vagrant-ubuntu-*:~$ cd /vagrant vagrant@vagrant-ubuntu-*:/vagrant$ pyenv activate solo (solo) vagrant@vagrant-ubuntu-*:/vagrant$ runme ./config.yml
您可以通过发送sigint(交互会话中的ctrl-c)来终止服务器。
测试框架
使用
运行现有测试套件(solo) vagrant@vagrant-ubuntu-*:/vagrant$ py.test