aboutsummaryrefslogtreecommitdiff
path: root/Justfile
blob: c6ac58d07d31b406a4c125d00e8a3d9eb67f08f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
profile := "debug"

default: build

build:
    swift build -c {{profile}}

test:
    swift test

coverage:
    swift test --enable-code-coverage
    xcrun llvm-cov report \
      .build/debug/NorgUITests.xctest/Contents/MacOS/NorgUITests \
      -instr-profile=.build/debug/codecov/default.profdata

format:
    swift-format --in-place --recursive Sources Tests
    swiftlint --fix Sources Tests

lint:
    swiftlint Sources Tests

ci: lint test