forked from tox-dev/tox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
34 lines (27 loc) · 1011 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<<-DOC
Start a virtualbox image with
* all supported interpreters installed
* tox installed
* this folder mapped read/writable to /vagrant
* convenient way to ssh into the box
This should work from Windows, macOS and Linux.
To run tests in the box do:
$ cd </path/to/where/this/file/is>
$ vagrant up arch
$ vagrant ssh arch
$ tox
Prerequisites: https://www.vagrantup.com/ and https://www.virtualbox.org/
**NOTE** When sshing into vagrant all .pyc files in this folder will be removed
automatically. This is necessary to avoid an ImportMismatchError in pytest.
If you switch between Host and guests, running tests on both you have to
remove all .pyc files in between runs.
For now there is only an Arch Linux box provided. More to come.
DOC
Vagrant.configure("2") do |config|
config.vm.define :arch do |arch|
arch.vm.box = "obestwalter/bindlestiff-arch-linux"
arch.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
end
end