-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (45 loc) · 1.45 KB
/
Makefile
File metadata and controls
55 lines (45 loc) · 1.45 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
52
53
54
55
.PHONY: build test test-integration test-all clean doc bigtable-up bigtable-down help
# Default target
help:
@echo "rust-bigtable Makefile"
@echo ""
@echo "Build targets:"
@echo " make build - Build the library"
@echo " make check - Check compilation without building"
@echo " make doc - Generate documentation"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Test targets:"
@echo " make test - Run doc tests"
@echo " make test-integration - Run integration tests (requires Bigtable)"
@echo " make test-all - Run all tests"
@echo ""
@echo "Bigtable infrastructure:"
@echo " make bigtable-up - Create Bigtable instance and table"
@echo " make bigtable-down - Delete Bigtable instance"
@echo ""
@echo "Environment variables:"
@echo " PROJECT_ID - GCP project ID (default: gen-lang-client-0421059902)"
@echo " INSTANCE_ID - Bigtable instance ID (default: test-inst)"
@echo " TABLE_NAME - Table name (default: my-table)"
@echo " COLUMN_FAMILY - Column family name (default: cf1)"
# Build targets
build:
cargo build
check:
cargo check
doc:
cargo doc --no-deps --open
clean:
cargo clean
# Test targets
test:
cargo test
test-integration:
cargo test --test integration_tests -- --ignored --test-threads=1
test-all: test test-integration
# Bigtable infrastructure
bigtable-up:
./scripts/bigtable-up.sh
bigtable-down:
./scripts/bigtable-down.sh