forked from tox-dev/tox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tox-dev#479 from Avira/455-add-vagrant
Add a Vagrantfile with a custom box to the project.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ Igor Duarte Cardoso | |
Allan Feldman | ||
Josh Smeaton | ||
Paweł Adamczak | ||
Oliver Bestwalter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |