forked from rsocket/rsocket-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
25 lines (21 loc) · 704 Bytes
/
Vagrantfile
File metadata and controls
25 lines (21 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant configuration that creates Travis-CI compatible build environment
# for rsocket.
# Get the APT dependencies from the Travis config.
require 'yaml'
yml = YAML.load_file(File.dirname(__dir__) + '/.travis.yml')
apt = yml['addons']['apt']
packages = apt['packages'] + ['git', 'cmake3']
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
# Need more than 2048 MiB to compile folly.
vb.memory = "4096"
end
config.vm.provision "shell", inline: <<-SHELL
apt-add-repository -y "apt['sources'].join(' ')"
apt-get update
apt-get -y install #{packages.join(' ')}
SHELL
end