12345678910111213141516171819202122232425262728
  1. Vagrant.configure("2") do |config|
  2. # Refer: https://docs.vagrantup.com.
  3. config.vm.synced_folder ".", "/vagrant",
  4. type: 'rsync',
  5. rsync__exclude: ['_build/', '.mypy_cache/', '.pytest_cache/', '_prebuilt/']
  6. config.vm.define 'freebsd11' do |freebsd11|
  7. freebsd11.vm.box = 'generic/freebsd11'
  8. freebsd11.vm.provision 'shell', inline: <<-SHELL
  9. set -eu
  10. for package in python37 py37-pip ccache gcc10 gcc9 gcc8 git; do
  11. echo "Installing $package"
  12. pkg install -qy $package
  13. done
  14. ln -fs g++9 /usr/local/bin/g++-9
  15. ln -fs gcc9 /usr/local/bin/gcc-9
  16. ln -fs g++8 /usr/local/bin/g++-8
  17. ln -fs gcc8 /usr/local/bin/gcc-8
  18. sudo -u vagrant pip install -q --user pytest pytest-xdist
  19. SHELL
  20. end
  21. config.vm.provider 'virtualbox' do |vbox|
  22. vbox.memory = 1024 * 4
  23. vbox.cpus = 8
  24. end
  25. end