Skip to content

Commit 325288a

Browse files
Valasterite
authored andcommittedSep 10, 2017
[vagrant box] add Debian distribs
1 parent 6202e37 commit 325288a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

Diff for: ‎Vagrantfile

+19
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ Vagrant.configure("2") do |config|
2626
end
2727
end
2828

29+
[[:jessie, '3.5'], [:stretch, '3.9']].product([32, 64]).each do |(dist, ver), bits|
30+
box_name = "#{dist}#{bits}"
31+
32+
config.vm.define(box_name) do |c|
33+
c.vm.box = "debian/#{box_name}"
34+
35+
c.vm.provision :shell, inline: %(
36+
apt-get -y install apt-transport-https dirmngr
37+
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
38+
echo 'deb https://dist.crystal-lang.org/apt crystal main' > /etc/apt/sources.list.d/crystal.list
39+
apt-get update
40+
apt-get -y install crystal curl git libgmp3-dev zlib1g-dev libedit-dev libxml2-dev libssl-dev libyaml-dev libreadline-dev g++ llvm-#{ver} llvm-#{ver}-dev
41+
echo 'export LIBRARY_PATH="/opt/crystal/embedded/lib"' > /etc/profile.d/crystal.sh
42+
)
43+
44+
clone_crystal_from_vagrant.call(c)
45+
end
46+
end
47+
2948
config.vm.define "freebsd" do |c|
3049
c.ssh.shell = "csh"
3150
c.vm.box = "freebsd/FreeBSD-10.2-RELEASE"

0 commit comments

Comments
 (0)
Please sign in to comment.