Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Added travis config and coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Rzegocki committed Apr 17, 2016
1 parent b089eb3 commit a782a64
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@ Berksfile.lock
\#*#
.*.sw[a-z]
*.un~
coverage

# Bundler
Gemfile.lock
Expand Down
2 changes: 2 additions & 0 deletions .overcommit.yml
Expand Up @@ -41,6 +41,8 @@ PreCommit:
enabled: true
TrailingWhitespace:
enabled: true
TravisLint:
enabled: true
XmlLint:
enabled: true
XmlSyntax:
Expand Down
24 changes: 24 additions & 0 deletions .travis.yml
@@ -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
13 changes: 7 additions & 6 deletions Gemfile
Expand Up @@ -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'
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -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.