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