yams/.vscode/tasks.json

59 lines
No EOL
2 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "local-ci: build image (ubuntu-24.04)",
"type": "shell",
"command": "docker build -t yams/local-ci:ubuntu-24.04 -f docker/local-ci/ubuntu.Dockerfile .",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "local-ci: run meson unit tests (docker)",
"type": "shell",
"dependsOn": [
"local-ci: build image (ubuntu-24.04)"
],
"command": "docker run --rm -v ${workspaceFolder}:/work -w /work yams/local-ci:ubuntu-24.04 bash -lc 'scripts/local-ci/run_meson_tests.sh'",
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "local-ci: run daemon-only tests (docker)",
"type": "shell",
"dependsOn": [
"local-ci: build image (ubuntu-24.04)"
],
"command": "docker run --rm -v ${workspaceFolder}:/work -w /work yams/local-ci:ubuntu-24.04 bash -lc 'XDG_RUNTIME_DIR=/run/user/$(id -u) mkdir -p \"$XDG_RUNTIME_DIR\" && BUILD_DIR=build/yams-debug conan install . -of \"$BUILD_DIR\" -s build_type=Debug -o \"yams/*:build_tests=True\" --build=missing && meson setup \"$BUILD_DIR\" -Dbuildtype=debug -Dbuild-tests=true -Denable-onnx=disabled && meson compile -C \"$BUILD_DIR\" && meson test -C \"$BUILD_DIR\" --print-errorlogs --no-rebuild --suite unit+isolated --test-args=\"--gtest_filter=DaemonTest.*\"'",
"problemMatcher": [
"$gcc"
],
"group": "test"
},
{
"label": "local-ci: clean build cache (docker)",
"type": "shell",
"command": "docker run --rm -v ${workspaceFolder}:/work -w /work yams/local-ci:ubuntu-24.04 bash -lc 'rm -rf build || true'",
"problemMatcher": [],
"group": "none"
},
{
"label": "local-ci: run meson unit tests (docker)",
"type": "shell",
"command": "docker run --rm -v ${workspaceFolder}:/work -w /work yams/local-ci:ubuntu-24.04 bash -lc 'scripts/local-ci/run_meson_tests.sh'",
"isBackground": false,
"problemMatcher": [
"$gcc"
],
"group": "test"
}
]
}