# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
  config.vm.box = "debian/jessie64"
  config.vm.synced_folder ".", "/vagrant", disabled: true
  if Vagrant.has_plugin?("vagrant-gatling-rsync")
    config.gatling.rsync_on_startup = true
  end
  config.vm.synced_folder ".", "/home/vagrant/python-unshare",
    type: "rsync",
    auto: true,
    rsync__exclude: [".cache", ".tox", "*.egg-info", "*.swp", ".DS_Store", ".idea", "*.pyc", "__pycache__"]
  config.vm.provision "shell", inline: <<-SHELL
    sudo apt-get update
    sudo apt-get install -yf build-essential linux-libc-dev python-pip python3-pip git
    sudo pip install tox
  SHELL
end