Skip to content

chore(make): refactor Makefile and support jobserver flags

Dmitry Ivanov requested to merge funbringer/refactor-makefile into master

Summary

  • chore(make): refactor Makefile and support jobserver flags

Build:

$ make build --dry-run
echo "" > tarantool-sys/VERSION
if test -f ~/.cargo/env; then . ~/.cargo/env; fi && \
	cargo build --locked  --features webui

$ make build --dry-run -j1
echo "" > tarantool-sys/VERSION
if test -f ~/.cargo/env; then . ~/.cargo/env; fi && \
	cargo build --locked -j1 --features webui

Test:

$ make test --dry-run
cargo test --locked
pipenv run pytest --numprocesses=auto

$ make test --dry-run
cargo test --locked -j1
pipenv run pytest  --numprocesses=1

Lint:

$ make lint --dry-run
cargo fmt --check
cargo clippy --version
cargo clippy \
	--locked  \
	--features=load_test,error_injection,webui \
	-- --deny clippy::all --no-deps
RUSTDOCFLAGS="-Dwarnings -Arustdoc::private_intra_doc_links" \
	cargo doc \
		--locked  \
		--workspace --no-deps --document-private-items \
		--exclude={tlua,sbroad-core,tarantool}
pipenv run lint

$ make lint --dry-run -j1
cargo fmt --check
cargo clippy --version
cargo clippy \
	--locked -j1 \
	--features=load_test,error_injection,webui \
	-- --deny clippy::all --no-deps
RUSTDOCFLAGS="-Dwarnings -Arustdoc::private_intra_doc_links" \
	cargo doc \
		--locked -j1 \
		--workspace --no-deps --document-private-items \
		--exclude={tlua,sbroad-core,tarantool}
pipenv run lint

  • Close #...
  • Cherry-pick to: none / 24.4 / 24.3 / 24.2
  • Docs follow-up: not necessary / new issue

Merge request reports