forked from dbcli/mycli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (24 loc) · 887 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.synced_folder ".", "/mycli"
config.vm.define "debian" do |debian|
debian.vm.box = "debian/jessie64"
debian.vm.provision "shell", inline: <<-SHELL
echo "-> Building DEB"
sudo apt-get update
sudo echo "deb http://ppa.launchpad.net/spotify-jyrki/dh-virtualenv/ubuntu trusty main" >> /etc/apt/sources.list
sudo echo "deb-src http://ppa.launchpad.net/spotify-jyrki/dh-virtualenv/ubuntu trusty main" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y --force-yes python-virtualenv dh-virtualenv debhelper build-essential
echo "-> Cleaning up old workspace"
rm -rf build
mkdir -p build
cp -r /mycli build/.
cd build/mycli
echo "-> Creating mycli deb"
dpkg-buildpackage -us -uc
cp ../*.deb /mycli/.
SHELL
end
end