Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Inspec all the things #74

Merged
merged 17 commits into from
Feb 28, 2017
20 changes: 10 additions & 10 deletions .kitchen.dokken.yml → .kitchen.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ platforms:
intermediate_instructions:
- RUN zypper --non-interactive install aaa_base perl-Getopt-Long-Descriptive which net-tools

suites:
- name: client
run_list:
- recipe[test::client]
attributes:

- name: server
run_list:
- recipe[test::server]
attributes:
# suites:

This comment was marked as outdated.

This comment was marked as outdated.

# - name: client
# run_list:
# - recipe[test::client]
# attributes:
#
# - name: server
# run_list:
# - recipe[test::server]
# attributes:
56 changes: 48 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
sudo: required
dist: trusty

# install the pre-release chef-dk. Use chef-stable-trusty to install the stable release
addons:
apt:
sources:
- chef-stable-trusty
packages:
- chefdk

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8037ef4b880ec4953fed
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
language: ruby
rvm:
- 2.3.1
bundler_args: --without integration development
script:
- bundle exec foodcritic -f any . --tags ~FC007 --tags ~FC015 --tags ~FC023 --tags ~FC059
- bundle exec rubocop -r cookstyle
- bundle exec rspec

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

branches:
only:
- master

services: docker

env:
matrix:
- INSTANCE=client-centos-6
- INSTANCE=client-centos-7
- INSTANCE=client-ubuntu-1204
- INSTANCE=client-ubuntu-1404
- INSTANCE=client-ubuntu-1604
- INSTANCE=server-centos-6
- INSTANCE=server-centos-7
- INSTANCE=server-ubuntu-1204
- INSTANCE=server-ubuntu-1404
- INSTANCE=server-ubuntu-1604

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/chef --version
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/foodcritic --version

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

matrix:
include:
- script:
- /opt/chefdk/bin/chef exec rake
env: UNIT_AND_LINT=1