-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1 KB
/
Makefile
File metadata and controls
53 lines (38 loc) · 1 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
db.start:
docker-compose up
db.stop:
docker-compose down
db.drop:
rm -rf ./postgres-data
db.reset:
make db.stop && make db.drop && make db.start
tests.setup:
cargo run -p chaindexing-tests
tests:
make tests.setup && cargo test -- --nocapture
tests.without.capture:
make tests.setup && cargo test -- --nocapture
tests.with.name:
cargo test -p chaindexing-tests -- $(name)
tests.with.name.and.backtrace:
RUST_BACKTRACE=1 cargo test -p chaindexing-tests -- $(name)
tests.with.backtrace:
RUST_BACKTRACE=1 make tests
doc:
cargo doc --open
lint:
cargo clippy
cargo fmt
cargo machete
publish:
cargo publish -p chaindexing-macros
cargo publish -p chaindexing
publish.dry:
cargo publish -p chaindexing-macros --dry-run
cargo publish -p chaindexing --dry-run
publish.dirty:
cargo publish -p chaindexing-macros --allow-dirty
cargo publish -p chaindexing --allow-dirty
publish.dirty.dry:
cargo publish -p chaindexing-macros --allow-dirty --dry-run
cargo publish -p chaindexing --allow-dirty --dry-run