Skip to content

Commit

Permalink
Update Makefile to circumvent broken delivery local
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4dev committed Aug 17, 2018
1 parent 6d04df3 commit 05a5ab8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions cookbooks/cwb-server/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ make syntax

## Testing

> This feature is currently broken in mono-repos\
> See https://github.com/chef/delivery-cli/issues/47
> Workaround: Use Makefile targets instead
This cookbook uses (Chef Delivery Local)[https://docs.chef.io/delivery_cli.html#delivery-local] to automate testing stages.

Run all tests:
Expand Down
15 changes: 8 additions & 7 deletions cookbooks/cwb-server/Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
.PHONY: install outdated test lint vendor
.PHONY: install outdated test integration_test unit_test lint syntax all_tests vendor

install:
berks install

outdated:
berks outdated

test:
kitchen verify
test: integration_test

integration_test:
kitchen test
kitchen verify

unit_test:
delivery local unit
chef exec rspec spec/

lint:
delivery local lint
chef exec cookstyle

syntax:
delivery local syntax
chef exec foodcritic . --exclude spec -f any # -t \"~FC064\" -t \"~FC065\"

all_tests: lint syntax unit_test integration_test

vendor: install
./vendor_berks_cookbooks.sh

0 comments on commit 05a5ab8

Please sign in to comment.