chore(Makefile): build and test using all features

pull/125/head^2
Florian Dehau 5 years ago
parent a75b811061
commit 5bc617a9a6

@ -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…
Cancel
Save