Skip to content

Commit

Permalink
Add capabilities subcommand
Browse files Browse the repository at this point in the history
See #224
  • Loading branch information
jaspervdj-luminal authored Oct 5, 2020
1 parent 880789c commit ec1279f
Show file tree
Hide file tree
Showing 9 changed files with 1,742 additions and 26 deletions.
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FREGOT_VERSION=v$(shell sed -n '/^Version:/{s/.*: *//p}' fregot.cabal)

.PHONY: install
install:
stack --no-terminal --skip-ghc-check install goldplate
stack --no-terminal --skip-ghc-check --copy-bins --test build

.PHONY: test
test:
fregot test tests/rego # Rego tests
fregot test examples/ami_id # AMI ID example
fregot test examples/break_example # Breakpoint example
goldplate -j2 --pretty-diff tests/golden # Golden tests
fregot test tests/rego # Rego tests
fregot test examples/ami_id # AMI ID example
fregot test examples/break_example # Breakpoint example
goldplate -j2 --pretty-diff tests/golden # Golden tests
fregot capabilities | jq --sort-keys '.' | \
diff - extra/capabilities-$(FREGOT_VERSION).json # Capabilities doc

extra/capabilities-$(FREGOT_VERSION).json: fregot.cabal
fregot capabilities | jq --sort-keys '.' >$@
Loading

0 comments on commit ec1279f

Please sign in to comment.