forked from git-ai-project/git-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
51 lines (47 loc) · 1.17 KB
/
Taskfile.yml
File metadata and controls
51 lines (47 loc) · 1.17 KB
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
version: "3"
tasks:
# CLI
build:
desc: Build the project in release mode (native Apple Silicon)
cmds:
- cargo build --release
sources:
- src/**/*.rs
- Cargo.toml
generates:
- target/release/git-ai-cli
build-debug:
desc: Build the project in debug mode (native Apple Silicon)
cmds:
- cargo build
sources:
- src/**/*.rs
- Cargo.toml
generates:
- target/debug/git-ai-cli
clean:
desc: Clean build artifacts
cmds:
- cargo clean
release:local:
desc: Build release and install to user bin directory
deps: [build]
cmds:
- cp target/release/git-ai ~/.local/bin/git-ai
- chmod +x ~/.local/bin/git-ai
debug:local:
desc: Build release and install to user bin directory
deps: [build-debug]
cmds:
- cp target/debug/git-ai ~/.local/bin/git-ai
- chmod +x ~/.local/bin/git-ai
test:e2e:
desc: Run the end-to-end tests with debug build
deps: [build-debug]
cmds:
- bats tests/e2e/user-scenarios.bats
test:e2e:release:
desc: Run the end-to-end tests with release build
deps: [build]
cmds:
- bats tests/e2e/user-scenarios.bats