代码拉取完成,页面将自动刷新
# encoding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.box = "trusty-server-cloudimg-amd64-vagrant-disk1"
# install prerequisites for stdeb and tests
config.vm.provision :shell, :inline => "apt-get update"
config.vm.provision :shell, :inline => <<-SH
export DEBIAN_FRONTEND=noninteractive
apt-get install --yes debhelper python-all-dev python-setuptools apt-file python-requests python3-all-dev python3-setuptools libpq-dev
wget http://debs.strawlab.org/precise/python3-requests_2.3.0-0ads1_all.deb -O python3-requests_2.3.0-0ads1_all.deb
dpkg -i python3-requests_2.3.0-0ads1_all.deb
SH
# We need to copy files to a new dir to prevent vagrant filesystem issues.
config.vm.provision :shell, :inline => "cp -a /vagrant /tmp/vagrant_copy"
# Install stdeb
config.vm.provision :shell, :inline => "rm -rf /tmp/vagrant_copy/deb_dist"
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && python setup.py --command-packages=stdeb.command sdist_dsc --with-python2=True --with-python3=True --no-python3-scripts=True install_deb"
# Run tests.
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && ./test.sh"
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && ./test-pypi-install.sh"
# Run tests on Python 3.
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && PYEXE=/usr/bin/python3 ./test.sh"
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && PYEXE=/usr/bin/python3 ./test-pypi-install.sh"
# Run more tests
config.vm.provision :shell, :inline => "cd /tmp/vagrant_copy && ./test2and3.sh"
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。