Skip to content
Snippets Groups Projects
Commit 3ee655c2 authored by Dmitry Ivanov's avatar Dmitry Ivanov Committed by Dmitry Rodionov
Browse files

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 check --locked
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 check --locked -j1
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
```
parent 9bedbfd2
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment