-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
42 lines (33 loc) · 894 Bytes
/
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
_default:
@just --list --unsorted
_cmake *CONFIG:
denv cmake -B build -S . {{ CONFIG }}
_build *ARGS:
denv cmake --build build -- {{ ARGS }}
_test *ARGS:
cd build && denv ./test-pflib {{ ARGS }}
# init a local denv for development
init:
#!/bin/sh
set -o errexit
set -o nounset
if command -v podman &> /dev/null; then
podman build env/ -f env/Containerfile -t pflib-env:latest
elif command -v docker &> /dev/null; then
docker build env/ -f env/Containerfile -t pflib-env:latest
else
echo "Unable to build pflib-env locally without podman or docker."
exit 1
fi
denv init pflib-env:latest
# configure pflib build
configure: _cmake
# compile pflib
build: _build
# run Boost.Test executable
test: _test
# print all messages during testing
test-log-all: (_test "-l all")
# remove build directory
clean:
rm -r build