-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
53 lines (42 loc) · 1.18 KB
/
Taskfile.yml
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
version: "3"
vars:
BUILD_DIR: build
TEST_DIR: test
tasks:
default:
deps: [configure, build]
configure:
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
debug:
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
build:
cmds:
- cmake --build {{.BUILD_DIR}}
docs:
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DBUILD_DOCS=ON -DBUILD_TESTING=OFF
- cmake --build {{.BUILD_DIR}}
coverage:
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DBUILD_DOCS=ON -DBUILD_TESTING=ON -DENABLE_COVERAGE=ON
- cmake --build {{.BUILD_DIR}}
- ctest --test-dir {{.BUILD_DIR}} --output-on-failure
release:
deps: [clean]
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
- task: build
- task: install
clean:
cmds:
- rm -rf {{.BUILD_DIR}}/*
install:
cmds:
- cmake --install {{.BUILD_DIR}}
test:
cmds:
- cmake -B {{.BUILD_DIR}} -S . -DBUILD_DOCS=OFF -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- cmake --build {{.BUILD_DIR}}
- ctest --test-dir {{.BUILD_DIR}} --output-on-failure