.DEFAULT_GOAL := lint
SHELL := /usr/bin/env bash
.PHONY: build
build:
cargo build
.PHONY: lint
lint:
cargo fmt --check
cargo clippy -- -D clippy::all
.PHONY:test
test: test-doc test-unit test-integration
.PHONY: test-doc
test-doc:
cargo test --doc
.PHONY: test-integration
test-integration:
$(MAKE) -C .. integration-tests-env-up
source ../.tmp/env; cargo test integration
.PHONY: test-unit
test-unit:
cargo test --lib
.PHONY: publish-test
publish-test:
cargo publish --dry-run -vv
.PHONY: _publish-crate
_publish-crate:
cargo publish
.PHONY: clean
clean:
cargo clean