Skip to content

Commit

Permalink
cargo-make, cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Apr 24, 2024
1 parent 2a77bfd commit e50fc2b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ ENV PATH="/root/.cargo/bin:${PATH}"
# Display installed Rust version
RUN rustc --version && cargo --version

# Install cargo-make
RUN cargo install --force cargo-make

# Install cargo-nextest
RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

# Install dependencies for Pyenv and Python
RUN apt-get update && \
apt-get install -y \
Expand Down
20 changes: 20 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true

[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--emit=files"]

[tasks.clean]
command = "cargo"
args = ["clean"]

[tasks.build]
command = "cargo"
args = ["build"]

[tasks.test]
workspace = false
command = "cargo"
args = ["nextest", "run", "--workspace", "${@}"]

0 comments on commit e50fc2b

Please sign in to comment.