Skip to content

Commit

Permalink
Merge pull request tox-dev#479 from Avira/455-add-vagrant
Browse files Browse the repository at this point in the history
Add a Vagrantfile with a custom box to the project.
  • Loading branch information
obestwalter authored Mar 13, 2017
2 parents 35231d4 + c7aae20 commit 5df724f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
2.x
-----

- #455: Add a Vagrantfile with a customized Arch Linux box for local testing

- #454: Revert #407, empty commands is not treated as an error.
Thanks Anthony Sottile (@asottile).

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ Igor Duarte Cardoso
Allan Feldman
Josh Smeaton
Paweł Adamczak
Oliver Bestwalter
34 changes: 34 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 5df724f

Please sign in to comment.