Skip to content

Commit

Permalink
Convenience Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 16, 2023
1 parent d58975a commit 819fb60
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
test:
shards install
crystal spec -v --error-trace
coverage: coverage/index.html
mutation: bin/crytic
bin/crytic test
coverage/index.html: bin/run_tests
rm -rf coverage/
kcov --clean --include-path=./src coverage ./bin/run_tests
xdg-open coverage/index.html
bin/run_tests: src/*.cr spec/*.cr
shards install
crystal build -o bin/run_tests src/run_tests.cr
bin/crytic:
shards install
clean:
rm -rf lib/ bin/ coverage/
git clean -f

0 comments on commit 819fb60

Please sign in to comment.