Skip to content

Update the handler to use latest version of Raven. #17

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
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
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Ignore docs files
_gh_pages
_site
.ruby-version
.node-version
Gemfile.lock

# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi
*~

# OS or Editor folders
.DS_Store
._*
Thumbs.db
.cache
.project
.settings
.tmproj
*.esproj
nbproject
*.sublime-project
*.sublime-workspace
.idea

# Komodo
*.komodoproject
.komodotools

# grunt-html-validation
validation-status.json
validation-report.json

# Folders to ignore
bin
node_modules
tmp
vendor
.bundle

# Chef specifics to ignore
.chef
.chefdk
.kitchen
.kitchen.local.yml
.vagrant
Berksfile.lock
*.lock.json
82 changes: 82 additions & 0 deletions .kitchen.dokken.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
driver:
name: dokken
chef_version: latest
privileged: true
transport:
name: dokken
provisioner:
name: dokken
verifier:
name: inspec
platforms:
- name: centos-7
named_run_list: centos
driver:
image: centos:7
platform: rhel
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN yum -y install lsof which systemd-sysv initscripts sudo
attributes:
poise-service:
redis:
provider: systemd
- name: centos-6
named_run_list: centos
driver:
image: centos:6
platform: rhel
pid_one_command: /sbin/init
intermediate_instructions:
- RUN yum -y install which initscripts sudo
- name: ubuntu-16.04
named_run_list: debian
driver:
image: ubuntu:16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update -y
- RUN /usr/bin/apt-get install sudo -y
attributes:
poise-service:
redis:
provider: systemd
- name: ubuntu-14.04
named_run_list: debian
driver:
image: ubuntu:14.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update -y
- RUN /usr/bin/apt-get install sudo -y
- name: ubuntu-12.04
named_run_list: debian
driver:
image: ubuntu:12.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update -y
- RUN /usr/bin/apt-get install sudo -y
- name: debian-8
named_run_list: debian
driver:
image: debian:8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install lsb-release sudo -y
attributes:
poise-service:
redis:
provider: systemd
- name: debian-7
named_run_list: debian
driver:
image: debian:7
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install lsb-release sudo -y
suites:
- name: default
48 changes: 48 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
AllCops:
Exclude:
- 'Rakefile'
- 'Vagrantfile'
- 'Policyfile.rb'
- 'Berksfile'
- 'Gemfile'
- 'metadata.rb'
- 'test/**/*'
- 'bin/**'
- 'vendor/**/*'
AlignParameters:
Enabled: false
ClassLength:
Enabled: false
CyclomaticComplexity:
Enabled: false
Documentation:
Enabled: false
Encoding:
Enabled: false
Style/FileName:
Enabled: false
LineLength:
Enabled: false
MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
PerceivedComplexity:
Enabled: false
Style/SpaceBeforeFirstArg:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/FileName:
Enabled: false
Style/GuardClause:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/AlignHash:
Enabled: false
Style/SpaceInsideHashLiteralBraces:
Enabled: false
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
sudo: required
dist: trusty
language: generic
cache: bundler
addons:
apt:
sources:
- chef-current-trusty
packages:
- chefdk
services: docker
env:
matrix:
- INSTANCE=default-centos-7
- INSTANCE=default-centos-6
- INSTANCE=default-ubuntu-1604
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1204
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-dokken
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/foodcritic --version
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen verify ${INSTANCE}
after_script:
- docker images
- docker ps -a
- cat .kitchen/logs/kitchen.log
matrix:
include:
- script: /opt/chefdk/embedded/bin/cookstyle
env: COOKSTYLE=1
- script: /opt/chefdk/embedded/bin/foodcritic . --exclude spec -f any
env: FOODCRITIC=1
- script: /opt/chefdk/embedded/bin/rspec --color --default-path test/spec
env: CHEFSPEC=1
notifications:
slack: bloomberg-rnd:BvYmxrV9xj902XWTRNrkLNkR
23 changes: 23 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
source 'https://rubygems.org'

group :lint do
gem 'cookstyle'
gem 'foodcritic'
end

group :unit, :integration do
gem 'chefspec'
gem 'berkshelf'
gem 'test-kitchen'
gem 'serverspec'
end

group :development do
gem 'awesome_print'
gem 'rake'
gem 'stove'
end

group :doc do
gem 'yard'
end
Loading