-
Notifications
You must be signed in to change notification settings - Fork 15
Makefile with useful repetitive commands #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9f7a2d7
Add 'Makefile' with useful repetitive commands
rustworthy 13c2e5a
Add test/doc phony target to makefile
rustworthy a0b9217
Use README.md: README.tpl src/lib.rs
rustworthy df131c1
Use .PHONY. Add 'test/perf' for flamegraph
rustworthy 9fd5a0d
Use cargo-flamegraph
rustworthy 61afdf1
Add phony targets as prerequisite of .PHONY right before target decla…
rustworthy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| /target/ | ||
| **/*.rs.bk | ||
| perf.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| FAKTORY_HOST=127.0.0.1 | ||
| FAKTORY_PORT=7419 | ||
| FAKTORY_PORT_UI=7420 | ||
|
|
||
| .PHONY: check | ||
| check: | ||
| cargo fmt --check | ||
| cargo clippy | ||
| cargo d --no-deps --all-features | ||
|
|
||
| .PHONY: doc | ||
| doc: | ||
| RUSTDOCFLAGS='--cfg docsrs' cargo +nightly d --all-features --open | ||
|
|
||
| .PHONY: faktory | ||
| faktory: | ||
| docker run --rm -d \ | ||
| -v faktory-data:/var/lib/faktory \ | ||
| -p ${FAKTORY_HOST}:${FAKTORY_PORT}:7419 \ | ||
| -p ${FAKTORY_HOST}:${FAKTORY_PORT_UI}:7420 \ | ||
| --name faktory \ | ||
| contribsys/faktory:latest \ | ||
| /faktory -b :7419 -w :7420 | ||
|
|
||
| .PHONY: faktory/kill | ||
| faktory/kill: | ||
| docker stop faktory | ||
|
|
||
| README.md: README.tpl src/lib.rs | ||
| cargo readme > README.md | ||
|
|
||
| .PHONY: test | ||
| test: | ||
| cargo t --locked --all-features --all-targets | ||
|
|
||
| .PHONY: test/doc | ||
| test/doc: | ||
| cargo test --locked --all-features --doc | ||
|
|
||
| .PHONY: test/e2e | ||
| test/e2e: | ||
| FAKTORY_URL=tcp://${FAKTORY_HOST}:${FAKTORY_PORT} cargo test --locked --all-features --all-targets | ||
|
|
||
| .PHONY: test/load | ||
| test/load: | ||
| cargo run --release --features binaries | ||
|
|
||
| .PHONY: test/perf | ||
| test/perf: | ||
| CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -o perf.flamegraph.svg -f binaries -b loadtest | ||
|
|
||
| .PHONY: test/perf/clean | ||
| test/perf/clean: | ||
| rm perf.* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.