openai/symphony
Publicmirrored fromhttps://github.com/openai/symphonyAvailable
elixir/Makefile
47lines · modecode
| 1 | .PHONY: help all setup deps build fmt fmt-check lint test coverage ci dialyzer e2e |
| 2 | |
| 3 | MIX ?= mix |
| 4 | |
| 5 | help: |
| 6 | @echo "Targets: setup, deps, fmt, fmt-check, lint, test, coverage, dialyzer, e2e, ci" |
| 7 | |
| 8 | setup: |
| 9 | $(MIX) setup |
| 10 | |
| 11 | deps: |
| 12 | $(MIX) deps.get |
| 13 | |
| 14 | build: |
| 15 | $(MIX) build |
| 16 | |
| 17 | fmt: |
| 18 | $(MIX) format |
| 19 | |
| 20 | fmt-check: |
| 21 | $(MIX) format --check-formatted |
| 22 | |
| 23 | lint: |
| 24 | $(MIX) lint |
| 25 | |
| 26 | coverage: |
| 27 | $(MIX) test --cover |
| 28 | |
| 29 | test: |
| 30 | $(MIX) test |
| 31 | |
| 32 | dialyzer: |
| 33 | $(MIX) deps.get |
| 34 | $(MIX) dialyzer --format short |
| 35 | |
| 36 | e2e: |
| 37 | SYMPHONY_RUN_LIVE_E2E=1 $(MIX) test test/symphony_elixir/live_e2e_test.exs |
| 38 | |
| 39 | ci: |
| 40 | $(MAKE) setup |
| 41 | $(MAKE) build |
| 42 | $(MAKE) fmt-check |
| 43 | $(MAKE) lint |
| 44 | $(MAKE) coverage |
| 45 | $(MAKE) dialyzer |
| 46 | |
| 47 | all: ci |