File: vagrant-spec.config.rb

package info (click to toggle)
vagrant-lxc 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 412 kB
  • sloc: ruby: 2,578; sh: 472; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# FIXME: Figure out why this doesn't work
if ENV['COVERAGE'] == 'true'
  require 'simplecov'
  require 'coveralls'

  SimpleCov.start { add_filter '/spec/' }
  SimpleCov.command_name 'acceptance'
end

if ENV['BOX_PATH'] == nil
  latest     = ENV.fetch('LATEST_BOXES','2014-03-21')
  release    = ENV.fetch('RELEASE', 'acceptance')
  local_path ="#{File.expand_path("../", __FILE__)}/boxes/output/#{latest}/vagrant-lxc-#{release}-amd64.box"
  if File.exists?(local_path)
    ENV['BOX_PATH'] = local_path
  else
    raise 'Set $BOX_PATH to the latest released boxes'
  end
end

Vagrant::Spec::Acceptance.configure do |c|
  c.component_paths << "spec/acceptance"
  c.provider 'lxc', box: ENV['BOX_PATH'], features: ['!suspend']
end