mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 06:30:29 +00:00
chore(Makefile): build and test using all features
This commit is contained in:
parent
a75b811061
commit
5bc617a9a6
1 changed files with 4 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -51,28 +51,27 @@ fmt: ## Check the format of the source code
|
|||
cargo fmt --all -- --check
|
||||
|
||||
.PHONY: clippy
|
||||
clippy: RUST_CHANNEL = nightly
|
||||
clippy: ## Check the style of the source code and catch common errors
|
||||
$(CARGO) clippy --features="termion rustbox"
|
||||
$(CARGO) clippy --all-features
|
||||
|
||||
|
||||
# ================================ Test =======================================
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run the tests
|
||||
$(CARGO) test --features=termion,crossterm
|
||||
$(CARGO) test --all-features
|
||||
|
||||
# =============================== Examples ====================================
|
||||
|
||||
.PHONY: build-examples
|
||||
build-examples: ## Build all examples
|
||||
@$(CARGO) build --examples --features=termion,crossterm
|
||||
@$(CARGO) build --examples --all-features
|
||||
|
||||
.PHONY: run-examples
|
||||
run-examples: ## Run all examples
|
||||
@for file in examples/*.rs; do \
|
||||
name=$$(basename $${file/.rs/}); \
|
||||
$(CARGO) run --features=termion,crossterm --example $$name; \
|
||||
$(CARGO) run --all-features --example $$name; \
|
||||
done;
|
||||
|
||||
# ================================ Doc ========================================
|
||||
|
|
Loading…
Reference in a new issue