-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathRakefile
44 lines (37 loc) · 773 Bytes
/
Rakefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
# More info at https://github.com/ruby/rake/blob/master/doc/rakefile.rdoc
images = %w[
centos-6
centos-7
centos-7-systemd
debian-7
debian-8
debian-9
fedora-20
fedora-26-systemd
fedora-rawhide-systemd
ubuntu-12.04
ubuntu-12.04-upstart
ubuntu-14.04
ubuntu-14.04-upstart
ubuntu-16.04
ubuntu-17.04
]
require 'bundler/setup'
require 'rspec/core/rake_task'
task :rspec do
RSpec::Core::RakeTask.new(:rspec)
end
images.each do |image|
desc "Test #{image} image"
task image do
ENV['DOCKERFILE_LOCATION'] = image
puts "Testing #{image} image"
puts "----------------------\n"
RSpec::Core::RakeTask.new(image)
end
end
desc 'Test all images'
task test: images
task default: %w[rspec]