80 lines
1.4 KiB
TOML
80 lines
1.4 KiB
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", "${@}"]
|
|
|
|
#-----------------------
|
|
#
|
|
# 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"] |