diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-13 01:17:52 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 09:15:07 +0100 |
| commit | 03f1a7389afeadf9aa2b1d62a38e5cb0a2a7e60d (patch) | |
| tree | 2efefc34a61c62d55d8436180acfc3590287f5fd /Makefile | |
Initial implementation
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..14a2e2c --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +profile := debug +target = $(shell rustc -vV | grep host | awk '{print $$2}') + +default: build + +set_rust: + rustup default stable + +build: + swift build -c $(profile) + +test: + swift test + +coverage: + swift test --enable-code-coverage + xcrun llvm-cov report \ + .build/debug/WmapParserPackageTests.xctest/Contents/MacOS/WmapParserPackageTests \ + -instr-profile=.build/debug/codecov/default.profdata + +benchmark: + swift package benchmark --target ParseBenchmarkTarget + +format: + swiftlint --fix Sources Tests + +lint: + swiftlint Sources Tests + +ci: lint test + +.PHONY: default set_rust build test coverage format lint benchmark ci |