-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (45 loc) · 1.21 KB
/
Makefile
File metadata and controls
61 lines (45 loc) · 1.21 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
56
57
58
59
60
61
.PHONY: build compile test test-harness test-integration clean fmt check install typecheck lint lint-fix verify tapioca
# Build the native extension and compile
build: compile
compile:
bundle exec rake compile
# Run unit tests
test: compile
bundle exec rake spec
# Run test harness specs (requires Docker)
test-harness: compile
bundle exec rspec spec/harness_spec.rb
# Run sdk-test-suite integration tests (requires Docker + Java 21+)
test-integration: compile
./etc/run-integration-tests.sh
# Generate Tapioca DSL RBI files (typed handler signatures)
tapioca: compile
bundle exec tapioca dsl
# Type checking
typecheck:
bundle exec srb tc
# Linting
lint:
bundle exec rubocop
lint-fix:
bundle exec rubocop -A
# Check Rust code compiles
check:
cargo check
# Format Rust code
fmt:
cargo fmt
# Clean build artifacts
clean:
cargo clean
rm -rf tmp/ pkg/ lib/restate/restate_internal.*
# Install gem dependencies
install:
bundle install
# Build the gem
gem: compile
gem build restate-sdk.gemspec
# Build, lint, typecheck, and run unit tests (no integration tests)
verify: compile tapioca lint typecheck test-harness
# Run everything (install, compile, test, typecheck, lint)
all: install compile test typecheck lint