Use docker for acceptance tests
authorMickaël Canévet <mickael.canevet@camptocamp.com>
Fri, 21 Aug 2015 05:49:28 +0000 (07:49 +0200)
committerMickaël Canévet <mickael.canevet@camptocamp.com>
Fri, 21 Aug 2015 05:49:28 +0000 (07:49 +0200)
12 files changed:
.gitignore
.travis.yml
spec/acceptance/nodesets/centos-5-x86_64-docker.yml
spec/acceptance/nodesets/centos-6-x86_64-docker.yml
spec/acceptance/nodesets/centos-7-x86_64-docker.yml
spec/acceptance/nodesets/debian-6-x86_64-docker.yml
spec/acceptance/nodesets/debian-7-x86_64-docker.yml
spec/acceptance/nodesets/debian-8-x86_64-docker.yml
spec/acceptance/nodesets/ubuntu-12.04-x86_64-docker.yml
spec/acceptance/nodesets/ubuntu-14.04-x86_64-docker.yml
spec/acceptance/nodesets/ubuntu-14.10-x86_64-docker.yml
spec/acceptance/nodesets/ubuntu-15.04-x86_64-docker.yml

index b5b7a00..65839fa 100644 (file)
@@ -5,3 +5,6 @@ spec/fixtures/
 .vagrant/
 .bundle/
 coverage/
+log/
+.*.swp
+*~
index cc61c5f..a27a6e7 100644 (file)
@@ -15,7 +15,7 @@ matrix:
     env: PUPPET_GEM_VERSION="~> 3.0"
   - rvm: 2.0.0
     env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
-  - rvm: 2.1.0
+  - rvm: 2.1.6
     env: PUPPET_GEM_VERSION="~> 4.0"
 notifications:
   email: false
index d9a52d8..679afb0 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: el-5-x86_64
     hypervisor : docker
     image: centos:5
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'yum install -y crontabs tar wget'
 CONFIG:
   type: foss
   log_level: debug
index b7a4396..9cab03d 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: el-6-x86_64
     hypervisor : docker
     image: centos:6
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'yum install -y crontabs tar wget'
 CONFIG:
   type: foss
   log_level: debug
index d891edf..0bc9727 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: el-7-x86_64
     hypervisor : docker
     image: centos:7
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/usr/sbin/init"]'
+    docker_image_commands:
+      - 'yum install -y crontabs tar wget'
 CONFIG:
   type: foss
   log_level: debug
index 685e2b7..359dae7 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: debian-6-amd64
     hypervisor : docker
     image: debian:6
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y wget'
 CONFIG:
   type: foss
   log_level: debug
index 0be8845..fc11f57 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: debian-7-amd64
     hypervisor : docker
     image: debian:7
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y cron wget'
 CONFIG:
   type: foss
   log_level: debug
index d3b89d9..86a55e1 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: debian-8-amd64
     hypervisor : docker
     image: debian:8
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y cron wget'
 CONFIG:
   type: foss
   log_level: debug
index 92a7901..f0ec72b 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: ubuntu-12.04-amd64
     hypervisor : docker
     image: ubuntu:12.04
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y wget'
 CONFIG:
   type: foss
   log_level: debug
index 7716f94..6fb9281 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: ubuntu-14.04-amd64
     hypervisor : docker
     image: ubuntu:14.04
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y wget'
 CONFIG:
   type: foss
   log_level: debug
index 256b004..2be425c 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: ubuntu-14.10-amd64
     hypervisor : docker
     image: ubuntu:14.10
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y wget'
 CONFIG:
   type: foss
   log_level: debug
index 800da28..caed722 100644 (file)
@@ -6,8 +6,10 @@ HOSTS:
     platform: ubuntu-15.04-amd64
     hypervisor : docker
     image: ubuntu:15.04
-    # This stops the image from being deleted on completion, speeding up the process.
     docker_preserve_image: true
+    docker_cmd: '["/sbin/init"]'
+    docker_image_commands:
+      - 'apt-get install -y wget'
 CONFIG:
   type: foss
   log_level: debug