2 Star 0 Fork 0

mirrors_anthonyfok/stdeb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Vagrantfile.debian-7-wheezy.rb 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
# encoding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box_url = "https://dl.dropboxusercontent.com/s/3jz559mjz2aw4gs/debian-wheezy-64-vanilla.box"
config.vm.box = "debian-wheezy-64-vanilla"
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_anthonyfok/stdeb.git
[email protected]:mirrors_anthonyfok/stdeb.git
mirrors_anthonyfok
stdeb
stdeb
master

搜索帮助