2023-01-12 11:36:42 -08:00
|
|
|
-include ../../Makefile.help
|
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
VERSION = $(shell grep -Po "version = \"\K[^\"]*" Move.toml | sed "s/\./_/g")
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
.PHONY: check
|
2023-01-12 11:36:42 -08:00
|
|
|
## Build contract
|
2023-05-02 09:22:30 -07:00
|
|
|
check:
|
|
|
|
sui move build -d
|
2023-01-12 11:36:42 -08:00
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
## Run tests
|
2023-05-02 09:22:30 -07:00
|
|
|
test: check
|
|
|
|
grep "public(friend) fun current_version(): V__${VERSION} {" sources/version_control.move
|
|
|
|
sui move test -t 1
|