extend integration tests

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-03 17:24:45 +02:00
parent d769659d48
commit d8cfd094ac
2 changed files with 13 additions and 0 deletions

View file

@ -1,4 +1,14 @@
images:
- centos-5
- centos-6
- centos-7
- centos-latest
- ubuntu-1004
- ubuntu-1204-20150612
- ubuntu-1204
- ubuntu-1304
- ubuntu-1404-20150320
- ubuntu-1404
- ubuntu-1504
- ubuntu-1510
- ubuntu-latest

View file

@ -52,6 +52,7 @@ class DockerTester
image = @images[dname]
raise "Can't find docker image #{dname}" if image.nil?
puts "--> start docker #{name}"
container = Docker::Container.create(
'Cmd' => [ '/bin/bash' ],
'Image' => image.id,
@ -59,8 +60,10 @@ class DockerTester
)
container.start
puts "--> run test on docker #{name}"
res = test_container(container.id)
puts "--> killrm docker #{name}"
container.kill
container.delete(force: true)
res