Skip to content

Commit

Permalink
Travis dokken (#81)
Browse files Browse the repository at this point in the history
* enable travis kitchen

* typo fix .kitchen.dokken.yml
  • Loading branch information
vkhatri authored Jan 7, 2017
1 parent a2ffccb commit 3b9d69e
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 18 deletions.
66 changes: 66 additions & 0 deletions .kitchen.dokken.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# settings:
# parallel: true

driver:
name: dokken
privileged: true
chef_image: chef/chef
chef_version: current

transport:
name: dokken

provisioner:
name: dokken

platforms:
- name: ubuntu-14.04
driver:
image: ubuntu:14.04
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install -y net-tools apt-transport-https initscripts

- name: centos-6.8
driver:
image: centos:6.8
platform: rhel
intermediate_instructions:
- RUN yum install -y net-tools initscripts

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

suites:
- name: default
run_list:
- recipe[filebeat::default]
attributes:
filebeat:
prospectors:
system_logs:
filebeat:
prospectors:
- paths:
- /var/log/messages
- /var/log/syslog
type: log
fields:
type: system_logs
- paths:
- /var/log/*.log
type: log
fields:
type: undefined
exclude_files:
- /var/log/messages
- /var/log/syslog
config:
output:
elasticsearch:
hosts: ["127.0.0.1:9200"]
29 changes: 21 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: false
sudo: required
dist: trusty

addons:
Expand All @@ -8,20 +8,33 @@ addons:
packages:
- chefdk

# skip bundle install
install: echo "skip bundle install"

branches:
only:
- master
- /^(?i:travis)-.*$/

env:
matrix:
- INSTANCE=default-centos-68
- INSTANCE=default-centos-7
- INSTANCE=default-ubuntu-1404

script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}

before_script:
- 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/bundle install --without solaris
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/foodcritic --version

script:
- /opt/chefdk/bin/chef exec rake

matrix:
include:
- before_script:
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/foodcritic --version
- script:
- /opt/chefdk/bin/chef exec rake
env: UNIT_AND_LINT=1
10 changes: 0 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
source 'https://rubygems.org'

gem 'rake'
gem 'berkshelf'
gem 'chefspec'
gem 'foodcritic'
gem 'rubocop'
gem 'kitchen-vagrant'
gem 'test-kitchen'
gem 'winrm'
gem 'winrm-fs'

group :solaris do
gem 'kitchen-zone', :git => 'https://github.com/criticalmass/kitchen-zone.git'
end

0 comments on commit 3b9d69e

Please sign in to comment.