Skip to content

Commit

Permalink
Make sure we run linting in Travis as well by using Rake
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Sep 9, 2016
1 parent ec3b40c commit f434974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ _yardoc
doc/
.idea

#chef stuff
# chef stuff
Berksfile.lock
.kitchen
.kitchen.local.yml
vendor/
.coverage/
.zero-knife.rb
Policyfile.lock.json

#vagrant stuff
# vagrant stuff
.vagrant/
.vagrant.d/
.kitchen/
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ services: docker
# Ensure we make ChefDK's Ruby the default
before_script:
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
# We have to install chef-sugar for ChefSpec
- /opt/chefdk/embedded/bin/chef gem install chef-sugar

script:
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/rubocop --version
- /opt/chefdk/embedded/bin/rubocop
- /opt/chefdk/embedded/bin/bundle install
- /opt/chefdk/embedded/bin/bundle exec rspec spec
- /opt/chefdk/embedded/bin/bundle exec rake

0 comments on commit f434974

Please sign in to comment.