Vagrantfile 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Automated creation of testing environments / binaries on misc. platforms
  4. def packages_prepare_wheezy
  5. return <<-EOF
  6. # debian 7 wheezy does not have lz4, but it is available from wheezy-backports:
  7. echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/wheezy-backports.list
  8. EOF
  9. end
  10. def packages_debianoid
  11. return <<-EOF
  12. if id "vagrant" >/dev/null 2>&1; then
  13. username='vagrant'
  14. home_dir=/home/vagrant
  15. else
  16. username='ubuntu'
  17. home_dir=/home/ubuntu
  18. fi
  19. apt-get update
  20. # install all the (security and other) updates
  21. apt-get dist-upgrade -y
  22. # for building borgbackup and dependencies:
  23. apt-get install -y libssl-dev libacl1-dev liblz4-dev libfuse-dev fuse pkg-config
  24. usermod -a -G fuse $username
  25. chgrp fuse /dev/fuse
  26. chmod 666 /dev/fuse
  27. apt-get install -y fakeroot build-essential git
  28. apt-get install -y python3-dev python3-setuptools
  29. # for building python:
  30. apt-get install -y zlib1g-dev libbz2-dev libncurses5-dev libreadline-dev liblzma-dev libsqlite3-dev
  31. # this way it works on older dists (like ubuntu 12.04) also:
  32. # for python 3.2 on ubuntu 12.04 we need pip<8 and virtualenv<14 as
  33. # newer versions are not compatible with py 3.2 any more.
  34. easy_install3 'pip<8.0'
  35. pip3 install 'virtualenv<14.0'
  36. touch $home_dir/.bash_profile ; chown $username $home_dir/.bash_profile
  37. EOF
  38. end
  39. def packages_redhatted
  40. return <<-EOF
  41. yum install -y epel-release
  42. yum update -y
  43. # for building borgbackup and dependencies:
  44. yum install -y openssl-devel openssl libacl-devel libacl lz4-devel fuse-devel fuse pkgconfig
  45. usermod -a -G fuse vagrant
  46. chgrp fuse /dev/fuse
  47. chmod 666 /dev/fuse
  48. yum install -y fakeroot gcc git patch
  49. # needed to compile msgpack-python (otherwise it will use slow fallback code):
  50. yum install -y gcc-c++
  51. # for building python:
  52. yum install -y zlib-devel bzip2-devel ncurses-devel readline-devel xz xz-devel sqlite-devel
  53. #yum install -y python-pip
  54. #pip install virtualenv
  55. touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
  56. EOF
  57. end
  58. def packages_darwin
  59. return <<-EOF
  60. # install all the (security and other) updates
  61. sudo softwareupdate --install --all
  62. # get osxfuse 3.x release code from github:
  63. curl -s -L https://github.com/osxfuse/osxfuse/releases/download/osxfuse-3.5.2/osxfuse-3.5.2.dmg >osxfuse.dmg
  64. MOUNTDIR=$(echo `hdiutil mount osxfuse.dmg | tail -1 | awk '{$1="" ; print $0}'` | xargs -0 echo) \
  65. && sudo installer -pkg "${MOUNTDIR}/Extras/FUSE for macOS 3.5.2.pkg" -target /
  66. sudo chown -R vagrant /usr/local # brew must be able to create stuff here
  67. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  68. brew update
  69. brew install openssl
  70. brew install lz4
  71. brew install xz # required for python lzma module
  72. brew install fakeroot
  73. brew install git
  74. brew install pkg-config
  75. touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
  76. EOF
  77. end
  78. def packages_freebsd
  79. return <<-EOF
  80. # install all the (security and other) updates, base system
  81. freebsd-update --not-running-from-cron fetch install
  82. # for building borgbackup and dependencies:
  83. pkg install -y openssl liblz4 fusefs-libs pkgconf
  84. pkg install -y fakeroot git bash
  85. # for building python:
  86. pkg install -y sqlite3
  87. # make bash default / work:
  88. chsh -s bash vagrant
  89. mount -t fdescfs fdesc /dev/fd
  90. echo 'fdesc /dev/fd fdescfs rw 0 0' >> /etc/fstab
  91. # make FUSE work
  92. echo 'fuse_load="YES"' >> /boot/loader.conf
  93. echo 'vfs.usermount=1' >> /etc/sysctl.conf
  94. kldload fuse
  95. sysctl vfs.usermount=1
  96. pw groupmod operator -M vagrant
  97. # /dev/fuse has group operator
  98. chmod 666 /dev/fuse
  99. touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
  100. # install all the (security and other) updates, packages
  101. pkg update
  102. yes | pkg upgrade
  103. EOF
  104. end
  105. def packages_openbsd
  106. return <<-EOF
  107. . ~/.profile
  108. pkg_add bash
  109. chsh -s /usr/local/bin/bash vagrant
  110. pkg_add openssl
  111. pkg_add lz4
  112. pkg_add git # no fakeroot
  113. pkg_add py3-setuptools
  114. ln -sf /usr/local/bin/python3.4 /usr/local/bin/python3
  115. ln -sf /usr/local/bin/python3.4 /usr/local/bin/python
  116. easy_install-3.4 pip
  117. pip3 install virtualenv
  118. touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
  119. # avoid that breaking llfuse install breaks borgbackup install under tox:
  120. sed -i.bak '/fuse.txt/d' /vagrant/borg/borg/tox.ini
  121. EOF
  122. end
  123. def packages_netbsd
  124. return <<-EOF
  125. hostname netbsd # the box we use has an invalid hostname
  126. PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/6.1.5/All/"
  127. export PKG_PATH
  128. pkg_add mozilla-rootcerts lz4 git bash
  129. chsh -s bash vagrant
  130. mkdir -p /usr/local/opt/lz4/include
  131. mkdir -p /usr/local/opt/lz4/lib
  132. ln -s /usr/pkg/include/lz4*.h /usr/local/opt/lz4/include/
  133. ln -s /usr/pkg/lib/liblz4* /usr/local/opt/lz4/lib/
  134. touch /etc/openssl/openssl.cnf # avoids a flood of "can't open ..."
  135. mozilla-rootcerts install
  136. pkg_add pkg-config # avoids some "pkg-config missing" error msg, even without fuse
  137. # pkg_add fuse # llfuse supports netbsd, but is still buggy.
  138. # https://bitbucket.org/nikratio/python-llfuse/issues/70/perfuse_open-setsockopt-no-buffer-space
  139. pkg_add python34 py34-setuptools
  140. ln -s /usr/pkg/bin/python3.4 /usr/pkg/bin/python
  141. ln -s /usr/pkg/bin/python3.4 /usr/pkg/bin/python3
  142. easy_install-3.4 pip
  143. pip install virtualenv
  144. touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
  145. # fuse does not work good enough (see above), do not install llfuse:
  146. sed -i.bak '/fuse.txt/d' /vagrant/borg/borg/tox.ini
  147. EOF
  148. end
  149. def install_pyenv(boxname)
  150. return <<-EOF
  151. curl -s -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
  152. echo 'export PATH="$HOME/.pyenv/bin:/vagrant/borg:$PATH"' >> ~/.bash_profile
  153. echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
  154. echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
  155. echo 'export PYTHON_CONFIGURE_OPTS="--enable-shared"' >> ~/.bash_profile
  156. echo 'export LANG=en_US.UTF-8' >> ~/.bash_profile
  157. EOF
  158. end
  159. def fix_pyenv_darwin(boxname)
  160. return <<-EOF
  161. echo 'export PYTHON_CONFIGURE_OPTS="--enable-framework"' >> ~/.bash_profile
  162. EOF
  163. end
  164. def install_pythons(boxname)
  165. return <<-EOF
  166. . ~/.bash_profile
  167. pyenv install 3.4.0 # tests
  168. pyenv install 3.5.0 # tests
  169. pyenv install 3.5.2 # binary build, use latest 3.5.x release
  170. pyenv rehash
  171. EOF
  172. end
  173. def build_sys_venv(boxname)
  174. return <<-EOF
  175. . ~/.bash_profile
  176. cd /vagrant/borg
  177. virtualenv --python=python3 borg-env
  178. EOF
  179. end
  180. def build_pyenv_venv(boxname)
  181. return <<-EOF
  182. . ~/.bash_profile
  183. cd /vagrant/borg
  184. # use the latest 3.5 release
  185. pyenv global 3.5.2
  186. pyenv virtualenv 3.5.2 borg-env
  187. ln -s ~/.pyenv/versions/borg-env .
  188. EOF
  189. end
  190. def install_borg(boxname)
  191. return <<-EOF
  192. . ~/.bash_profile
  193. cd /vagrant/borg
  194. . borg-env/bin/activate
  195. pip install -U wheel # upgrade wheel, too old for 3.5
  196. cd borg
  197. # clean up (wrong/outdated) stuff we likely got via rsync:
  198. rm -f borg/*.so borg/*.cpy*
  199. rm -f borg/{chunker,crypto,compress,hashindex,platform_linux}.c
  200. rm -rf borg/__pycache__ borg/support/__pycache__ borg/testsuite/__pycache__
  201. pip install -r requirements.d/development.txt
  202. # by using [fuse], setup.py can handle different fuse requirements:
  203. pip install -e .[fuse]
  204. EOF
  205. end
  206. def install_borg_no_fuse(boxname)
  207. return <<-EOF
  208. . ~/.bash_profile
  209. cd /vagrant/borg
  210. . borg-env/bin/activate
  211. pip install -U wheel # upgrade wheel, too old for 3.5
  212. cd borg
  213. # clean up (wrong/outdated) stuff we likely got via rsync:
  214. rm -f borg/*.so borg/*.cpy*
  215. rm -f borg/{chunker,crypto,compress,hashindex,platform_linux}.c
  216. rm -rf borg/__pycache__ borg/support/__pycache__ borg/testsuite/__pycache__
  217. pip install -r requirements.d/development.txt
  218. pip install -e .
  219. EOF
  220. end
  221. def install_pyinstaller(boxname)
  222. return <<-EOF
  223. . ~/.bash_profile
  224. cd /vagrant/borg
  225. . borg-env/bin/activate
  226. git clone https://github.com/thomaswaldmann/pyinstaller.git
  227. cd pyinstaller
  228. # develop branch, with fixed / freshly rebuilt bootloaders
  229. git checkout fresh-bootloader
  230. pip install -e .
  231. EOF
  232. end
  233. def install_pyinstaller_bootloader(boxname)
  234. return <<-EOF
  235. . ~/.bash_profile
  236. cd /vagrant/borg
  237. . borg-env/bin/activate
  238. git clone https://github.com/thomaswaldmann/pyinstaller.git
  239. cd pyinstaller
  240. # develop branch, with fixed / freshly rebuilt bootloaders
  241. git checkout fresh-bootloader
  242. # build bootloader, if it is not included
  243. cd bootloader
  244. python ./waf all
  245. cd ..
  246. pip install -e .
  247. EOF
  248. end
  249. def build_binary_with_pyinstaller(boxname)
  250. return <<-EOF
  251. . ~/.bash_profile
  252. cd /vagrant/borg
  253. . borg-env/bin/activate
  254. cd borg
  255. pyinstaller --clean --distpath=/vagrant/borg scripts/borg.exe.spec
  256. EOF
  257. end
  258. def run_tests(boxname)
  259. return <<-EOF
  260. . ~/.bash_profile
  261. cd /vagrant/borg/borg
  262. . ../borg-env/bin/activate
  263. if which pyenv 2> /dev/null; then
  264. # for testing, use the earliest point releases of the supported python versions:
  265. pyenv global 3.4.0 3.5.0
  266. pyenv local 3.4.0 3.5.0
  267. fi
  268. # otherwise: just use the system python
  269. if which fakeroot 2> /dev/null; then
  270. echo "Running tox WITH fakeroot -u"
  271. fakeroot -u tox --skip-missing-interpreters
  272. else
  273. echo "Running tox WITHOUT fakeroot -u"
  274. tox --skip-missing-interpreters
  275. fi
  276. EOF
  277. end
  278. def fix_perms
  279. return <<-EOF
  280. # . ~/.profile
  281. if id "vagrant" >/dev/null 2>&1; then
  282. chown -R vagrant /vagrant/borg
  283. else
  284. chown -R ubuntu /vagrant/borg
  285. fi
  286. EOF
  287. end
  288. Vagrant.configure(2) do |config|
  289. # use rsync to copy content to the folder
  290. config.vm.synced_folder ".", "/vagrant/borg/borg", :type => "rsync", :rsync__args => ["--verbose", "--archive", "--delete", "-z"], :rsync__chown => false
  291. # do not let the VM access . on the host machine via the default shared folder!
  292. config.vm.synced_folder ".", "/vagrant", disabled: true
  293. # fix permissions on synced folder
  294. config.vm.provision "fix perms", :type => :shell, :inline => fix_perms
  295. config.vm.provider :virtualbox do |v|
  296. #v.gui = true
  297. v.cpus = 1
  298. end
  299. # Linux
  300. config.vm.define "centos7_64" do |b|
  301. b.vm.box = "centos/7"
  302. b.vm.provider :virtualbox do |v|
  303. v.memory = 768
  304. end
  305. b.vm.provision "install system packages", :type => :shell, :inline => packages_redhatted
  306. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("centos7_64")
  307. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("centos7_64")
  308. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("centos7_64")
  309. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("centos7_64")
  310. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("centos7_64")
  311. end
  312. config.vm.define "centos6_32" do |b|
  313. b.vm.box = "centos6-32"
  314. b.vm.provision "install system packages", :type => :shell, :inline => packages_redhatted
  315. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("centos6_32")
  316. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("centos6_32")
  317. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("centos6_32")
  318. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg_no_fuse("centos6_32")
  319. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("centos6_32")
  320. end
  321. config.vm.define "centos6_64" do |b|
  322. b.vm.box = "centos6-64"
  323. b.vm.provider :virtualbox do |v|
  324. v.memory = 768
  325. end
  326. b.vm.provision "install system packages", :type => :shell, :inline => packages_redhatted
  327. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("centos6_64")
  328. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("centos6_64")
  329. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("centos6_64")
  330. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg_no_fuse("centos6_64")
  331. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("centos6_64")
  332. end
  333. config.vm.define "xenial64" do |b|
  334. b.vm.box = "ubuntu/xenial64"
  335. b.vm.provider :virtualbox do |v|
  336. v.memory = 768
  337. end
  338. b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid
  339. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("xenial64")
  340. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("xenial64")
  341. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("xenial64")
  342. end
  343. config.vm.define "trusty64" do |b|
  344. b.vm.box = "ubuntu/trusty64"
  345. b.vm.provider :virtualbox do |v|
  346. v.memory = 768
  347. end
  348. b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid
  349. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("trusty64")
  350. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("trusty64")
  351. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("trusty64")
  352. end
  353. config.vm.define "jessie64" do |b|
  354. b.vm.box = "debian/jessie64"
  355. b.vm.provider :virtualbox do |v|
  356. v.memory = 768
  357. end
  358. b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid
  359. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("jessie64")
  360. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("jessie64")
  361. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("jessie64")
  362. end
  363. config.vm.define "wheezy32" do |b|
  364. b.vm.box = "boxcutter/debian7-i386"
  365. b.vm.provision "packages prepare wheezy", :type => :shell, :inline => packages_prepare_wheezy
  366. b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid
  367. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("wheezy32")
  368. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy32")
  369. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy32")
  370. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("wheezy32")
  371. b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller("wheezy32")
  372. b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy32")
  373. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy32")
  374. end
  375. config.vm.define "wheezy64" do |b|
  376. b.vm.box = "boxcutter/debian7"
  377. b.vm.provision "packages prepare wheezy", :type => :shell, :inline => packages_prepare_wheezy
  378. b.vm.provision "packages debianoid", :type => :shell, :inline => packages_debianoid
  379. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("wheezy64")
  380. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("wheezy64")
  381. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("wheezy64")
  382. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("wheezy64")
  383. b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller("wheezy64")
  384. b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("wheezy64")
  385. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("wheezy64")
  386. end
  387. # OS X
  388. config.vm.define "darwin64" do |b|
  389. b.vm.box = "jhcook/yosemite-clitools"
  390. b.vm.provision "packages darwin", :type => :shell, :privileged => false, :inline => packages_darwin
  391. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("darwin64")
  392. b.vm.provision "fix pyenv", :type => :shell, :privileged => false, :inline => fix_pyenv_darwin("darwin64")
  393. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("darwin64")
  394. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("darwin64")
  395. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("darwin64")
  396. b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller("darwin64")
  397. b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("darwin64")
  398. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin64")
  399. end
  400. # BSD
  401. config.vm.define "freebsd64" do |b|
  402. b.vm.box = "geoffgarside/freebsd-10.2"
  403. b.vm.provider :virtualbox do |v|
  404. v.memory = 768
  405. end
  406. b.vm.provision "install system packages", :type => :shell, :inline => packages_freebsd
  407. b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd")
  408. b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd")
  409. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_pyenv_venv("freebsd")
  410. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg("freebsd")
  411. b.vm.provision "install pyinstaller", :type => :shell, :privileged => false, :inline => install_pyinstaller_bootloader("freebsd")
  412. b.vm.provision "build binary with pyinstaller", :type => :shell, :privileged => false, :inline => build_binary_with_pyinstaller("freebsd")
  413. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("freebsd")
  414. end
  415. config.vm.define "openbsd64" do |b|
  416. b.vm.box = "openbsd60-64" # note: basic openbsd install for vagrant WITH sudo and rsync pre-installed
  417. b.vm.provider :virtualbox do |v|
  418. v.memory = 768
  419. end
  420. b.vm.provision "packages openbsd", :type => :shell, :inline => packages_openbsd
  421. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("openbsd64")
  422. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg_no_fuse("openbsd64")
  423. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("openbsd64")
  424. end
  425. config.vm.define "netbsd64" do |b|
  426. b.vm.box = "netbsd70-64"
  427. b.vm.provider :virtualbox do |v|
  428. v.memory = 768
  429. end
  430. b.vm.provision "packages netbsd", :type => :shell, :inline => packages_netbsd
  431. b.vm.provision "build env", :type => :shell, :privileged => false, :inline => build_sys_venv("netbsd64")
  432. b.vm.provision "install borg", :type => :shell, :privileged => false, :inline => install_borg_no_fuse("netbsd64")
  433. b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("netbsd64")
  434. end
  435. end