From 2c9a8b84fccf466666dfd86bfbbbbd849c28f657 Mon Sep 17 00:00:00 2001 From: Nathan Youngman Date: Sun, 8 Sep 2013 00:59:59 -0600 Subject: [PATCH] Vagrant file for Linux 32-bit, ref #59 * git ignore .vagrant * fixup example test to use the github path (otherwise need to install as a test dependency) --- .gitignore | 5 +++++ Vagrantfile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ example_test.go | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4706a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Setup a Global .gitignore for OS and editor generated files: +# https://help.github.com/articles/ignoring-files +# git config --global core.excludesfile ~/.gitignore_global + +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..ac6f26d --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,47 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +VAGRANTFILE_API_VERSION = "2" + +# shell script to bootstrap Go on Linux +GO_LINUX = 'go1.1.2.linux-386.tar.gz' +# Everything after /src/ in the host operating system's path +PROJECT_PATH = File.dirname(__FILE__).partition("#{File::SEPARATOR}src#{File::SEPARATOR}").last +PARENT_PATH = File.split(PROJECT_PATH).first + +$bootstrap_linux = <