[config] default_to_workspace = false [env] CARGO = "./scripts/cargo_musl.sh" [tasks.build_cargo_image] script = "docker build -t unki/musllibs ./muslrust" [tasks.clean] command = "${CARGO}" args = ["clean"] [tasks.debug] dependencies = ["build_cargo_image"] command = "${CARGO}" args = ["build"] [tasks.release] dependencies = ["build_cargo_image"] command = "${CARGO}" args = ["build", "--release"] [tasks.run] script = ''' echo "Only integration tests are supported." exit 1 ''' [tasks.unit] command = "${CARGO}" args = ["test", "--lib", "${@}"] [tasks.integration] script = ''' cd ./integration bash integration_tests.sh ''' [tasks.gen_schema] script = ''' cd ./integration docker-compose up -d u_server docker-compose down ''' [tasks.test] dependencies = ["unit", "integration"]