aboutsummaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..d02c5f2
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,27 @@
+profile := "debug"
+
+default: build
+
+build:
+ swift build -c {{profile}}
+
+test:
+ swift test
+
+coverage:
+ swift test --enable-code-coverage
+ xcrun llvm-cov report \
+ .build/debug/NorgKitTests.xctest/Contents/MacOS/NorgKitTests \
+ -instr-profile=.build/debug/codecov/default.profdata
+
+benchmark:
+ swift package benchmark --target ParseBenchmarkTarget
+
+format:
+ swift-format --in-place --recursive Sources Tests
+ swiftlint --fix Sources Tests
+
+lint:
+ swiftlint Sources Tests
+
+ci: lint test