aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
blob: 5978c11f2e1ca8ce5b4e61b3e82fca8b1024b875 (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
25
26
27
28
29
30
31
32
33
help:
    @just --list

check: lint clippy test

lint: setup
    ./scripts/linters/lint

clippy: setup
    cargo clippy --tests

test: setup
    cargo test

fmt:
    nix fmt

setup: fetch-fixtures
    #!/usr/bin/env bash
    set -euo pipefail
    if [[ ! -f composer/vendor/autoload.php ]]; then
        composer install --no-dev --working-dir=composer
    fi
    if [[ ! -f scripts/linters/vendor/autoload.php ]]; then
        composer install --working-dir=scripts/linters
    fi

fetch-fixtures:
    #!/usr/bin/env bash
    set -euo pipefail
    for fetch in crates/shirabe/tests/plugin/fixtures/*/fetch; do
        "$fetch"
    done