Skip to content

Commit

Permalink
Add config presets for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayukov committed Aug 22, 2024
1 parent 0bed8c3 commit c73e65f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
run: |
mkdir -p ../build
rm -rf ../build/*
cmake -DYDB_SDK_TESTS=On -DYDB_SDK_EXAMPLES=On -DARCADIA_ROOT="../ydb-cpp-sdk" -DARCADIA_BUILD_ROOT="." --preset release
cmake --preset release-test-with-ccache-basedir
- name: Build
shell: bash
run: |
Expand Down
51 changes: 33 additions & 18 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@
"displayName": "Default Release Config",
"description": "Default release build configuration using Ninja generator and Clang compiler",
"binaryDir": "${sourceDir}/../build"
},
{
"name": "release-test",
"inherits": "release",
"displayName": "Default Release Test Config",
"description": "Default release build configuration with all tests and examples",
"cacheVariables": {
"YDB_SDK_TESTS": "TRUE",
"YDB_SDK_EXAMPLES": "TRUE"
}
},
{
"name": "release-test-with-ccache-basedir",
"inherits": "release-test",
"displayName": "Release Test Config CCACHE_BASEDIR Case",
"description": "Only for the case when using CCACHE_BASEDIR",
"cacheVariables": {
"ARCADIA_ROOT": "../ydb-cpp-sdk",
"ARCADIA_BUILD_ROOT": "."
}
}
],
"buildPresets": [
Expand All @@ -51,51 +71,46 @@
],
"testPresets": [
{
"name": "release",
"configurePreset": "release",
"displayName": "Default Release Tests",
"name": "common",
"hidden": true,
"output": {
"outputOnFailure": true
},
"execution": {
"timeout": 1200
},
}
},
{
"name": "release",
"inherits": "common",
"configurePreset": "release-test",
"displayName": "Default Release Tests",
"environment": {
"YDB_ENDPOINT": "localhost:2136",
"YDB_DATABASE": "/local"
}
},
{
"name": "release-unit",
"configurePreset": "release",
"inherits": "common",
"configurePreset": "release-test",
"displayName": "Default Unit Release Tests",
"filter" : {
"include": {
"label": "unit"
}
},
"output": {
"outputOnFailure": true
},
"execution": {
"timeout": 1200
}
},
{
"name": "release-integration",
"configurePreset": "release",
"inherits": "common",
"configurePreset": "release-test",
"displayName": "Default Integration Release Tests",
"output": {
"outputOnFailure": true
},
"filter" : {
"include": {
"label": "integration"
}
},
"execution": {
"timeout": 1200
},
"environment": {
"YDB_ENDPOINT": "localhost:2136",
"YDB_DATABASE": "/local"
Expand Down

0 comments on commit c73e65f

Please sign in to comment.