forked from letsql/letsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
59 lines (47 loc) · 1.3 KB
/
justfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# list justfile recipes
default:
just --list
# clean untracked files
clean:
git clean -fdx -e 'ci/ibis-testing-data'
# format code
fmt:
black .
blackdoc .
ruff --fix .
# lint code
lint:
black -q . --check
ruff .
# download testing data
download-data owner="ibis-project" repo="testing-data" rev="master":
#!/usr/bin/env bash
outdir="{{ justfile_directory() }}/ci/ibis-testing-data"
rm -rf "$outdir"
url="https://github.com/{{ owner }}/{{ repo }}"
args=("$url")
if [ "{{ rev }}" = "master" ]; then
args+=("--depth" "1")
fi
args+=("$outdir")
git clone "${args[@]}"
if [ "{{ rev }}" != "master" ]; then
git -C "${outdir}" checkout "{{ rev }}"
fi
# start backends using docker compose; no arguments starts all backends
up *backends:
docker compose up --build --wait {{ backends }}
# generate API documentation
docs-apigen *args:
cd docs && poetry run quartodoc interlinks
poetry run quartodoc build {{ args }} --config docs/_quarto.yml
# build documentation
docs-render:
poetry run quarto render docs
# deploy docs to netlify
docs-deploy:
poetry run quarto publish --no-prompt --no-browser --no-render netlify docs
# run the entire docs build pipeline
docs-build-all:
just docs-apigen --verbose
just docs-render