131 lines
No EOL
3.1 KiB
JSON
131 lines
No EOL
3.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "setup (Debug)",
|
|
"type": "shell",
|
|
"command": "./setup.sh Debug",
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "setup (Release)",
|
|
"type": "shell",
|
|
"command": "./setup.sh Release",
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "build (Debug)",
|
|
"type": "shell",
|
|
"dependsOn": [
|
|
"setup (Debug)"
|
|
],
|
|
"command": "meson compile -C builddir",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "build (Release)",
|
|
"type": "shell",
|
|
"dependsOn": [
|
|
"setup (Release)"
|
|
],
|
|
"command": "meson compile -C build/release",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "test (Debug)",
|
|
"type": "shell",
|
|
"dependsOn": [
|
|
"build (Debug)"
|
|
],
|
|
"command": "meson test -C builddir --print-errorlogs",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "test",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
}
|
|
},
|
|
{
|
|
"label": "clean",
|
|
"type": "shell",
|
|
"command": "rm -rf builddir build",
|
|
"problemMatcher": [],
|
|
"group": "none"
|
|
},
|
|
{
|
|
"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": "test"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
} |