How to run puppet-lint before commit
This commit is contained in:
parent
08756a621b
commit
60f69b06d4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.swp
|
||||
Gemfile.lock
|
||||
|
14
Gemfile
Normal file
14
Gemfile
Normal file
@ -0,0 +1,14 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
group :development, :test do
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
gem 'puppet-lint', '~> 0.3.2'
|
||||
end
|
||||
|
||||
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||
gem 'puppet', puppetversion, :require => false
|
||||
else
|
||||
gem 'puppet', :require => false
|
||||
end
|
||||
|
||||
# vim:ft=ruby
|
17
Hacking.md
Normal file
17
Hacking.md
Normal file
@ -0,0 +1,17 @@
|
||||
## Testing
|
||||
|
||||
* [eNoCloud](gitolite@labs.enovance.com:ci-openstack-upgrade -b arch-tester)
|
||||
* [eDeploy-lxc](https://github.com/enovance/edeploy-lxc)
|
||||
|
||||
|
||||
## Syntax checks
|
||||
|
||||
* [Vi plugin](https://github.com/scrooloose/syntastic)
|
||||
1. Install syntastic (using bundle, see https://github.com/sbadia/grimvim/blob/master/vimrc#L21)
|
||||
2. Install puppet and puppet-lint packages
|
||||
3. Run vi [example](http://pub.sebian.fr/pub/syntastic.png)
|
||||
|
||||
* Manual launch:
|
||||
1. cd openstack-puppet-ci
|
||||
2. bundle install (or create a rvm : rvm use ruby-1.9.3-p385;rvm gemset use puppet-dev)
|
||||
3. rake lint
|
Loading…
x
Reference in New Issue
Block a user