mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Problem: There is no automated way to setup a build environment. Solution: Use Vagrant to pull an Ubuntu image and install the same prerequisites used on Travis. Testing: Full build on my macintosh.
24 lines
612 B
Ruby
24 lines
612 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
# Every Vagrant development environment requires a box. You can search for
|
|
# boxes at https://vagrantcloud.com/search.
|
|
|
|
config.vm.box = "ubuntu/trusty64"
|
|
|
|
# use shell and other provisioners as usual
|
|
config.vm.provision :shell, path: "bootstrap.sh"
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 1024
|
|
v.cpus = 4
|
|
end
|
|
config.vm.provision "shell" do |s|
|
|
s.inline = <<-SCRIPT
|
|
# Change directory automatically on ssh login
|
|
echo "cd /vagrant" >> /home/vagrant/.bashrc
|
|
SCRIPT
|
|
end
|
|
end
|