Skip to content

Commit 17302ec

Browse files
committed
Add script and makefile enteries for cargo-semver-checks
This allows to run the tool manually. Right now the script doesn't do much, but when we want to run it with various feature sets or other flags it will be more useful.
1 parent e94f8f9 commit 17302ec

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ build:
4848
docs:
4949
mdbook build docs
5050

51+
.PHONY: semver-rev
52+
semver-rev:
53+
./scripts/semver-checks.sh $(if $(rev),--baseline-rev $(rev),--baseline-rev main)
54+
55+
.PHONY: semver-version
56+
semver-version:
57+
./scripts/semver-checks.sh $(if $(version),--baseline-version $(version),)
58+
5159
.PHONY: up
5260
up:
5361
$(COMPOSE) up -d --wait

scripts/semver-checks.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
cargo semver-checks -p scylla -p scylla-cql $@

0 commit comments

Comments
 (0)