-
Notifications
You must be signed in to change notification settings - Fork 9
/
Taskfile.yml
45 lines (40 loc) · 844 Bytes
/
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
version: "3"
tasks:
default:
cmds:
- task: build
- task: test
build:
dir: build
cmds:
- task: apply-patch
- defer: { task: undo-patch }
- cmake .. -DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release
sources:
- ../src/**/*.hpp
- ../src/**/*.cpp
generates:
- ../test/plugins/pawn-redis.so
build:test:
dir: test
cmds:
- sampctl ensure
- sampctl build
sources:
- ../test.pwn
generates:
- gamemodes/test.amx
test:
dir: test
deps: [build:test]
cmds:
- sampctl run
apply-patch:
dir: ./lib/cpp_redis
cmds:
- git apply ../../patches/fix-missing-thread-include.patch
undo-patch:
dir: ./lib/cpp_redis
cmds:
- git apply -R ../../patches/fix-missing-thread-include.patch