Commit 01a50112 authored by Tim Smith's avatar Tim Smith
Browse files

Test in Travis with kitchen-dokken


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 6cc3acd9
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
transport:
name: dokken
provisioner:
name: dokken
platforms:
- name: debian-8
driver:
image: dokken/debian-8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: debian-9
driver:
image: dokken/debian-9
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: centos-6
driver:
image: dokken/centos-6
platform: rhel
pid_one_command: /sbin/init
- name: centos-7
driver:
image: dokken/centos-7
platform: rhel
pid_one_command: /usr/lib/systemd/systemd
- name: fedora-26
driver:
image: dokken/fedora-26
pid_one_command: /usr/lib/systemd/systemd
- name: fedora-27
driver:
image: dokken/fedora-27
pid_one_command: /usr/lib/systemd/systemd
- name: ubuntu-14.04
driver:
image: dokken/ubuntu-14.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: ubuntu-16.04
driver:
image: dokken/ubuntu-16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- name: opensuse-leap
driver:
image: dokken/opensuse-leap
pid_one_command: /bin/systemd
sudo: required
dist: trusty
sudo: false
addons:
apt:
sources:
......@@ -8,20 +8,33 @@ addons:
packages:
- chefdk
# Don't `bundle install`
# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"
branches:
only:
- master
# Ensure we make ChefDK's Ruby the default
before_script:
- eval "$(chef shell-init bash)"
services: docker
script:
env:
matrix:
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1604
- INSTANCE=default-centos-7
- INSTANCE=default-debian-8
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- chef --version
- cookstyle --version
- foodcritic --version
- chef exec delivery local all
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen verify ${INSTANCE}
matrix:
include:
- script:
- /opt/chefdk/bin/chef exec delivery local all
env: UNIT_AND_LINT=1
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