~pieq/checkbox/fix-1484872-env-variables-forced-to-non-international

« back to all changes in this revision

Viewing changes to plainbox/daily-package-testing/Vagrantfile

  • Committer: Zygmunt Krynicki
  • Date: 2013-03-15 17:27:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1995.
  • Revision ID: zygmunt.krynicki@canonical.com-20130315172719-qd1bzgtit00ufvy9
daily-package-testing: add scripts and data for testing daily package

Unlike other tests this is not something we can run on each merge
request (yet). The test-in-vagrant.sh script ascertains the status of
the current package in the daily PPA

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: ruby -*-
 
2
# vi: set ft=ruby sw=2 ts=2 :
 
3
 
 
4
Vagrant::Config.run do |config|
 
5
 
 
6
  # Define a Ubuntu Server image (cloud) for the 12.04 release (precise)
 
7
  config.vm.define :precise do |precise_config|
 
8
    precise_config.vm.box = "precise-cloud-i386"
 
9
    precise_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box"
 
10
  end
 
11
 
 
12
  # Define a Ubuntu Server image (cloud) for the 12.10 release (quantal)
 
13
  config.vm.define :quantal do |quantal_config|
 
14
    quantal_config.vm.box = "quantal-cloud-i386"
 
15
    quantal_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-i386-vagrant-disk1.box"
 
16
  end
 
17
 
 
18
  # Define a Ubuntu Server image (cloud) for the 13.04 release (raring)
 
19
  config.vm.define :raring do |raring_config|
 
20
    raring_config.vm.box = "raring-cloud-i386"
 
21
    raring_config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box"
 
22
  end
 
23
 
 
24
  # For debugging and later future GUI testing
 
25
  if ENV.key? "VAGRANT_GUI"
 
26
    config.vm.boot_mode = :gui
 
27
  end
 
28
 
 
29
  # Setup an apt cache if one is available
 
30
  if ENV.key? "VAGRANT_APT_CACHE"
 
31
    config.vm.provision :shell, :inline => "echo 'Acquire::http { Proxy \"#{ENV['VAGRANT_APT_CACHE']}\"; };' > /etc/apt/apt.conf"
 
32
  end
 
33
 
 
34
  # Update to have the latest packages, this is needed because the image comes
 
35
  # with an old (and no longer working) apt cache and links to many packages no
 
36
  # longer work.
 
37
  config.vm.provision :shell, :inline => "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes"
 
38
  # Install package that provides add-apt-repository 
 
39
  config.vm.provision :shell, :inline => "apt-get install --yes python-software-properties"
 
40
  # Add the checkbox-dev/ppa ppa with daily builds 
 
41
  config.vm.provision :shell, :inline => "add-apt-repository ppa:checkbox-dev/ppa"
 
42
  # Update apt cache again
 
43
  config.vm.provision :shell, :inline => "apt-get update"
 
44
  # Install plainbox
 
45
  config.vm.provision :shell, :inline => "apt-get install --yes plainbox"
 
46
end