94 lines
1.7 KiB
TOML
94 lines
1.7 KiB
TOML
extend = "./examples/Makefile.toml"
|
|
|
|
[env]
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
|
|
|
[config]
|
|
skip_core_tasks = true
|
|
|
|
[tasks.default]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.check]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "check", "${@}"]
|
|
|
|
[tasks.build]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "build", "${@}"]
|
|
|
|
[tasks.fmt]
|
|
command = "cargo"
|
|
args = ["fmt"]
|
|
|
|
[tasks.test]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "test", "${@}"]
|
|
|
|
[tasks.clean]
|
|
workspace = false
|
|
command = "cargo"
|
|
args = ["clean"]
|
|
|
|
[tasks.check-watch]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "check", "${@}"]
|
|
watch = { watch = ["nl-sys/src", "pcap-sys/src", "sparse-05/sparse-05-client/src", "sparse-05/sparse-05-common/src", "sparse-05/sparse-05-server/src"] }
|
|
|
|
#-----------------------
|
|
#
|
|
# Git tasks
|
|
#
|
|
#-----------------------
|
|
|
|
[tasks.git-pre-commit]
|
|
workspace = false
|
|
dependencies = ["build", "test", "fmt"]
|
|
|
|
[tasks.git-add]
|
|
workspace = false
|
|
command = "git"
|
|
args = ["add", "."]
|
|
|
|
[tasks.git-commit]
|
|
workspace = false
|
|
command = "convco"
|
|
args = ["commit", "-i"]
|
|
dependencies = ["git-pre-commit", "git-add"]
|
|
|
|
#---------------------------------
|
|
#
|
|
# Project setup tasks
|
|
#
|
|
#---------------------------------
|
|
|
|
[tasks.setup]
|
|
workspace = false
|
|
dependencies = ["setup-pull-rust-image", "setup-update-submodules"]
|
|
|
|
[tasks.setup-pull-rust-image]
|
|
workspace = false
|
|
script = "docker pull rust:1-alpine"
|
|
|
|
[tasks.setup-update-submodules]
|
|
workspace = false
|
|
script = "git submodule update --init"
|
|
|
|
#----------------------
|
|
#
|
|
# CI tasks
|
|
#
|
|
#----------------------
|
|
|
|
[tasks.ci]
|
|
workspace = false
|
|
dependencies = ["setup", "build", "ci-convco-check"]
|
|
|
|
[tasks.ci-convco-check]
|
|
command = "convco"
|
|
args = ["check"]
|