Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Vagrantfile with a custom box to the project. #479

Merged
merged 1 commit into from
Mar 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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