You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/05/30 14:12:25 UTC

git commit: THRIFT-1985 add a Vagrantfile to build and test Apache Thrift fully reproducable

Updated Branches:
  refs/heads/master 1e3c88463 -> 14ff9c8a6


THRIFT-1985 add a Vagrantfile to build and test Apache Thrift fully reproducable


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/14ff9c8a
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/14ff9c8a
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/14ff9c8a

Branch: refs/heads/master
Commit: 14ff9c8a6a283b20f0c88ebcb9ff257cf861922c
Parents: 1e3c884
Author: Roger Meier <ro...@apache.org>
Authored: Thu May 30 14:11:45 2013 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Thu May 30 14:11:45 2013 +0200

----------------------------------------------------------------------
 .gitignore  |    1 +
 Vagrantfile |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/14ff9c8a/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 855df1d..0c44429 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,6 +22,7 @@ gen-*
 
 /Makefile
 /Makefile.in
+/.vagrant/
 /aclocal/libtool.m4
 /aclocal/ltoptions.m4
 /aclocal/ltsugar.m4

http://git-wip-us.apache.org/repos/asf/thrift/blob/14ff9c8a/Vagrantfile
----------------------------------------------------------------------
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..b63dae9
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,41 @@
+# © The Apache Software Foundation
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+$script = <<SCRIPT
+echo I am provisioning for Apache Thrift ...
+sudo apt-get update -qq -y
+sudo apt-get upgrade -qq -y
+sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev make libqt4-dev
+sudo apt-get install -qq ant openjdk-7-jdk
+sudo apt-get install -qq python-all python-all-dev python-all-dbg
+sudo apt-get install -qq libbit-vector-perl
+sudo apt-get install -qq php5-dev php5-cli phpunit
+sudo apt-get install -qq libglib2.0-dev
+sudo apt-get install -qq git erlang-base erlang-eunit erlang-dev
+sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil
+#sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
+sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime
+echo I am building Apache Thrift ...
+cd /vagrant
+sh bootstrap.sh
+sh configure
+make
+make dist
+make check
+#sh test/test.sh
+date > /etc/vagrant_provisioned_at
+SCRIPT
+
+Vagrant.configure("2") do |config|
+  # Ubuntu 12.04 LTS (Precise Pangolin)
+  config.vm.box = "precise64"
+  config.vm.box_url = "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box"
+  # config.vm.box = "precise32"
+  # config.vm.box_url = "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-i386-disk1.box"
+
+  # call the script
+  config.vm.provision :shell, :inline => $script
+end