mirror of
https://github.com/certbot/certbot.git
synced 2026-01-23 07:20:55 +03:00
* Adds workaround to setup.py for issue with Vagrant sync filesystem and hard linking (used by distutils in Python < 2.7.9). This workaround is only used in a Vagrant environment. * Adds Vagrant-related files to .gitignore
33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
# Setup instructions from docs/using.rst
|
|
$ubuntu_setup_script = <<SETUP_SCRIPT
|
|
sudo apt-get update
|
|
sudo apt-get install -y python python-setuptools python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev libffi-dev ca-certificates
|
|
|
|
cd /vagrant
|
|
if [ ! -d "venv" ]; then
|
|
virtualenv --no-site-packages -p python2 venv
|
|
./venv/bin/python setup.py dev
|
|
fi
|
|
SETUP_SCRIPT
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
config.vm.define "ubuntu-trusty", primary: true do |ubuntu_trusty|
|
|
ubuntu_trusty.vm.box = "ubuntu/trusty64"
|
|
ubuntu_trusty.vm.provision "shell", inline: $ubuntu_setup_script
|
|
ubuntu_trusty.vm.provider "virtualbox" do |v|
|
|
# VM needs more memory to run test suite, got "OSError: [Errno 12]
|
|
# Cannot allocate memory" when running
|
|
# letsencrypt.client.tests.display.util_test.NcursesDisplayTest
|
|
v.memory = 1024
|
|
end
|
|
end
|
|
|
|
end
|