wolfssl/Vagrantfile
Moisés Guimarães cc6b11c95b vagrant recipe to get a linux machine for testing.
The virtual machine is provided by hashicorp (the company that makes vagrant) and is an Ubuntu Precise 64

The provisioning script that runs in the first boot of the machine will copy and setup a synchronize script so you don't have to run ./autogen.sh and ./configure every time to build in a different OS and you can also build and run on both (guest and host) at the same time.

The ./pull_to_vagrant.sh script should be called at least once before building cyassl so you get all the changes from you host machine.
2014-08-11 11:31:36 -07:00

30 lines
630 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
$setup = <<SCRIPT
apt-get update
apt-get install -y git autoconf libtool make valgrind
cp -rp /vagrant/ cyassl/
echo "cd cyassl" >> .bashrc
echo "echo -e '\e[0;32mRunning cyassl sync\e[0m'" >> .bashrc
echo "./pull_to_vagrant.sh" >> .bashrc
cd cyassl
./autogen.sh
./configure
make check
cd ..
chown -hR vagrant:vagrant cyassl/ /tmp/output
SCRIPT
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provision "shell", inline: $setup
end