mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-08-17 08:30:33 +03:00
Add a Vagrant file to test in Ubuntu 10.04
This commit is contained in:
parent
fb01c4c839
commit
25ea92872c
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
||||
/venv
|
||||
/weasyprint/tests/test_results
|
||||
/weasyprint/tests/w3_test_suite/test_results
|
||||
/.vagrant
|
||||
|
31
Vagrantfile
vendored
Normal file
31
Vagrantfile
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
# To use this, install Vagrant from http://vagrantup.com/ and VirtualBox
|
||||
# then run 'vagrant up'
|
||||
|
||||
# It should automatically download an Ubuntu 10.04 virtual machine,
|
||||
# install WeasyPrint with PyGTK in it and run the test suite.
|
||||
# The point is to test that everything works fine with an older distribution.
|
||||
|
||||
# To only run the test suite later, use
|
||||
# vagrant ssh -c '~/venv/bin/py.test /vagrant/weasyprint'
|
||||
|
||||
|
||||
Vagrant::Config.run do |config|
|
||||
config.vm.box = "weasyprint-lucid32"
|
||||
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
|
||||
config.vm.provision :shell, :inline => <<-EOF
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update --force-yes -y
|
||||
apt-get install --force-yes -y --no-install-recommends \
|
||||
imagemagick python-lxml python-gtk2 python-virtualenv python-dev
|
||||
sudo -u vagrant -s '
|
||||
cd ~vagrant
|
||||
virtualenv venv
|
||||
# The project root directory is mounted at /vagrant
|
||||
venv/bin/pip install pytest -e /vagrant
|
||||
venv/bin/py.test /vagrant/weasyprint
|
||||
'
|
||||
EOF
|
||||
end
|
Loading…
Reference in New Issue
Block a user