Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kitchen-dokken testing to Travis #330

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .kitchen.dokken.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
chef_version: 12.19.36
# chef_version: current

transport:
name: dokken

provisioner:
name: dokken
require_chef_omnibus: 12.19.36

# TODO: uncomment after converting to inspec
# verifier:
# name: inspec

platforms:
- name: centos-6
driver:
image: centos:6
platform: rhel
pid_one_command: /sbin/init
intermediate_instructions:
- RUN yum -y install which initscripts net-tools wget sudo

- name: centos-7
driver:
image: centos:7
platform: rhel
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN yum -y install lsof which systemd-sysv initscripts wget net-tools sudo

- name: debian-7
driver:
image: debian:7
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y apt-transport-https lsb-release procps net-tools sudo

- name: debian-8
driver:
image: debian:8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y apt-transport-https lsb-release procps net-tools sudo

- name: fedora-latest
driver:
image: fedora:latest
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf -y install yum which systemd-sysv initscripts wget net-tools sudo

- name: ubuntu-14.04
driver:
image: ubuntu-upstart:14.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y apt-transport-https lsb-release procps net-tools sudo

- name: ubuntu-16.04
driver:
image: ubuntu:16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y apt-transport-https lsb-release procps net-tools sudo
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
language: ruby
cache: bundler
services: docker
dist: trusty
rvm:
- 2.3.1
sudo: false
sudo: required
branches:
only:
- master
bundler_args: --without=integration --path=.bundle
env:
global:
- KITCHEN_LOCAL_YAML=.kitchen.dokken.yml
matrix:
- CMD="rake" OPTIONS="style"
- CMD="rake" OPTIONS="spec"
- CMD="kitchen verify" OPTIONS="default-centos-6"
- CMD="kitchen verify" OPTIONS="default-centos-7"
- CMD="kitchen verify" OPTIONS="default-debian-7"
- CMD="kitchen verify" OPTIONS="default-debian-8"
- CMD="kitchen verify" OPTIONS="default-fedora-latest"
- CMD="kitchen verify" OPTIONS="default-ubuntu-1404"
- CMD="kitchen verify" OPTIONS="default-ubuntu-1604"
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
script:
- bundle exec rake style
- bundle exec rake spec
- bundle exec $CMD $OPTIONS
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ group :testing do
gem 'rubocop'
end

group :travis_integration do
gem 'kitchen-dokken'
end

group :integration do
gem 'busser-serverspec'
gem 'kitchen-vagrant'
Expand Down