Merge "Use strainer for chef checks when possible"
This commit is contained in:
commit
5fb81cf31b
@ -141,20 +141,32 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
||||||
ruby1.9.1 /usr/bin/bundle exec rubocop
|
if grep rubocop: Strainerfile; then
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec strainer test -o rubocop
|
||||||
|
else
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec ruby1.9.1 /usr/bin/bundle exec rubocop
|
||||||
|
fi
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: chef-cookbook-foodcritic
|
name: chef-cookbook-foodcritic
|
||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
ruby1.9.1 /usr/bin/bundle exec foodcritic -f any -t ~FC003 -t ~FC023 .
|
if grep foodcritic: Strainerfile; then
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec strainer test -o foodcritic
|
||||||
|
else
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec foodcritic -f any -t ~FC003 -t ~FC023 .
|
||||||
|
fi
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: chef-cookbook-chefspec
|
name: chef-cookbook-chefspec
|
||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
||||||
ruby1.9.1 /usr/bin/bundle exec rspec .cookbooks/$COOKBOOK/spec
|
if grep chefspec: Strainerfile; then
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec strainer test -o chefspec
|
||||||
|
else
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec rspec .cookbooks/$COOKBOOK/spec
|
||||||
|
fi
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: run-tests
|
name: run-tests
|
||||||
|
Loading…
Reference in New Issue
Block a user