Unverified Commit 05dd5a6d authored by Tim Smith's avatar Tim Smith
Browse files

Switch to kitchen-dokken and test more platforms

parent 5cc6c362
settings:
parallel: true
---
driver:
name: docker
# privileged is required otherwise the container doesn't boot right
privileged: true
name: dokken
chef_version: 12.5.1
privileged: true # because Docker and SystemD/Upstart
transport:
name: dokken
provisioner:
name: dokken
verifier:
root_path: '/opt/verifier'
sudo: false
platforms:
- name: debian-8
driver:
image: debian:8
pid_one_command: /bin/systemd
- name: centos-5
driver:
image: centos:5
- name: centos-6
driver:
image: centos:6
platform: rhel
run_command: /sbin/init
provision_command:
- /usr/bin/yum install -y initscripts net-tools wget
intermediate_instructions:
- RUN yum -y install tar which initscripts
- name: centos-7
driver:
image: centos:7
platform: rhel
run_command: /usr/lib/systemd/systemd
provision_command:
- /bin/yum install -y initscripts net-tools wget
intermediate_instructions:
- RUN yum clean all
- RUN yum -y install net-tools lsof
pid_one_command: /usr/lib/systemd/systemd
- name: fedora-23
driver:
image: fedora:23
intermediate_instructions:
- RUN yum clean all
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN yum -y install tar
- name: ubuntu-12.04
driver:
image: ubuntu-upstart:12.04
platform: ubuntu
disable_upstart: false
run_command: /sbin/init
provision_command:
- /usr/bin/apt-get update
- /usr/bin/apt-get install apt-transport-https net-tools -y
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https net-tools -y
- name: ubuntu-14.04
driver:
image: ubuntu-upstart:14.04
platform: ubuntu
disable_upstart: false
run_command: /sbin/init
provision_command:
- /usr/bin/apt-get update
- /usr/bin/apt-get install apt-transport-https net-tools -y
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https net-tools -y
- name: ubuntu-16.04
driver:
image: ubuntu:15.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https net-tools -y
suites:
- name: default
......
......@@ -14,8 +14,19 @@ env:
matrix:
- INSTANCE=default-ubuntu-1204
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1604
- INSTANCE=default-debian-8
- INSTANCE=default-centos-5
- INSTANCE=default-centos-6
- INSTANCE=default-centos-7
- INSTANCE=default-fedora-23
- INSTANCE=source-ubuntu-1204
- INSTANCE=source-ubuntu-1404
- INSTANCE=source-ubuntu-1604
- INSTANCE=source-debian-8
- INSTANCE=source-centos-5
- INSTANCE=source-centos-6
- INSTANCE=source-fedora-23
- INSTANCE=source-centos-7
# Don't `bundle install`
install: echo "skip bundle install"
......@@ -25,7 +36,8 @@ before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142230889
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef gem install kitchen-docker
- /opt/chefdk/embedded/bin/chef gem install kitchen-dokken
script:
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/rubocop --version
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment