Permalink
Browse files

Added travis config and coveralls support

  • Loading branch information...
ajgon committed Apr 16, 2016
1 parent b089eb3 commit a782a64af1633252494b4fbaadc475e4b79d9200
Showing with 38 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .overcommit.yml
  3. +24 −0 .travis.yml
  4. +7 −6 Gemfile
  5. +4 −0 spec/spec_helper.rb
View
@@ -6,6 +6,7 @@ Berksfile.lock
\#*#
.*.sw[a-z]
*.un~
coverage
# Bundler
Gemfile.lock
View
@@ -41,6 +41,8 @@ PreCommit:
enabled: true
TrailingWhitespace:
enabled: true
TravisLint:
enabled: true
XmlLint:
enabled: true
XmlSyntax:
View
@@ -0,0 +1,24 @@
---
sudo: false
rvm:
- '2.2'
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
before_install: "gem install bundler"
install: bundle install --without chef
before_script:
- chef gem install coveralls
- git config --global user.email "travis@travis.ci"
- git config --global user.name "Travis CI"
- bundle exec overcommit --sign
- bundle exec overcommit --sign pre-commit
script:
- bundle exec overcommit -r
- chef exec rspec
View
13 Gemfile
@@ -4,17 +4,18 @@ source 'https://rubygems.org/'
group :lint do
gem 'brakeman'
gem 'bundler-audit'
gem 'coveralls'
gem 'foodcritic'
gem 'mdl'
gem 'overcommit'
gem 'rubocop'
gem 'travis'
end
group :development do
gem 'rspec'
group :chef do
gem 'berkshelf'
gem 'chefspec'
gem 'kitchen-vagrant'
gem 'rspec'
gem 'test-kitchen'
end
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'berkshelf'
View
@@ -12,4 +12,8 @@
config.log_level = :error
end
# coveralls
require 'coveralls'
Coveralls.wear!
at_exit { ChefSpec::Coverage.report! }

0 comments on commit a782a64

Please sign in to comment.