Skip to content

Commit 5df724f

Browse files
authored
Merge pull request #479 from Avira/455-add-vagrant
Add a Vagrantfile with a custom box to the project.
2 parents 35231d4 + c7aae20 commit 5df724f

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

CHANGELOG

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
2.x
22
-----
33

4+
- #455: Add a Vagrantfile with a customized Arch Linux box for local testing
5+
46
- #454: Revert #407, empty commands is not treated as an error.
57
Thanks Anthony Sottile (@asottile).
68

CONTRIBUTORS

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Igor Duarte Cardoso
4141
Allan Feldman
4242
Josh Smeaton
4343
Paweł Adamczak
44+
Oliver Bestwalter

Vagrantfile

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

0 commit comments

Comments
 (0)