summaryrefslogtreecommitdiff
path: root/test/Vagrantfile
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2020-01-03 15:20:00 -0500
committerAnish Athalye <me@anishathalye.com>2020-01-03 15:34:46 -0500
commit6d24613b0b453e546fa4e9defc695d8f982743c9 (patch)
tree7e5124b2606284ef761cd69fcb8892d0038d297d /test/Vagrantfile
parent1e1885c45a28190dc1cbde993a9ddcf1729ee4d1 (diff)
Unify Vagrant and Travis-CI tests
This patch makes the tests (including the test driver) run entirely inside Vagrant, which avoids calling the very slow `vagrant` driver many times for running the tests. On my machine, `./test` runs in 22 seconds, down from hundreds of seconds prior to this patch. This also has the nice side effect of matching how the Travis CI tests were run, so there's no need for a separate `test_travis` anymore.
Diffstat (limited to 'test/Vagrantfile')
-rw-r--r--test/Vagrantfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Vagrantfile b/test/Vagrantfile
index 347c402..fbdfe39 100644
--- a/test/Vagrantfile
+++ b/test/Vagrantfile
@@ -1,8 +1,8 @@
Vagrant.configure(2) do |config|
- config.vm.box = 'debian/buster64'
+ config.vm.box = 'ubuntu/bionic64'
# sync by copying for isolation
- config.vm.synced_folder "..", "/dotbot", type: "rsync"
+ config.vm.synced_folder "..", "/dotbot", mount_options: ["ro"]
# disable default synced folder
config.vm.synced_folder ".", "/vagrant", disabled: true