Skip to content

Commit 5602bbc

Browse files
andistormPietfried
andauthored
Build examples in CI (#749)
* LIBOCPP16_BUILD_EXAMPLES=ON for CI workflow * Fix cmake option name and description * Modify config to fulfill scheme * Fix sql_init_path Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * Update config/v16/config.json Co-authored-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com> Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> --------- Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> Co-authored-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
1 parent 033b18c commit 5602bbc

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.ci/build-kit/install_and_test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cmake \
77
-S "$EXT_MOUNT/source" \
88
-G Ninja \
99
-DBUILD_TESTING=ON \
10+
-DLIBOCPP16_BUILD_EXAMPLES=ON \
1011
-DCMAKE_BUILD_TYPE=Debug \
1112
-DCMAKE_INSTALL_PREFIX="$WORKSPACE_PATH/dist" \
1213
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ find_package(everest-cmake 0.1 REQUIRED
1414
option(${PROJECT_NAME}_BUILD_TESTING "Build unit tests, used if included as dependency" OFF)
1515
option(BUILD_TESTING "Build unit tests, used if standalone project" OFF)
1616
option(CMAKE_RUN_CLANG_TIDY "Run clang-tidy" OFF)
17-
option(LIBOCPP_BUILD_EXAMPLES "Build charge_point and central_system binaries." OFF)
17+
option(LIBOCPP16_BUILD_EXAMPLES "Build charge_point binary" OFF)
1818
option(OCPP_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT})
1919
option(LIBOCPP_ENABLE_DEPRECATED_WEBSOCKETPP "Usage of deprecated websocket++ instead of libwebsockets" OFF)
2020

config/v16/config.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"Internal": {
3-
"ChargePointId": "",
4-
"CentralSystemURI": "",
5-
"ChargeBoxSerialNumber": "",
3+
"ChargePointId": "cp001",
4+
"CentralSystemURI": "127.0.0.1:8180/steve/websocket/CentralSystemService/",
5+
"ChargeBoxSerialNumber": "cp001",
66
"ChargePointModel": "Yeti",
77
"ChargePointVendor": "Pionix",
88
"FirmwareVersion": "0.1",
@@ -54,8 +54,5 @@
5454
},
5555
"CostAndPrice": {
5656
"CustomDisplayCostAndPrice": false
57-
},
58-
"Custom": {
59-
"ExampleConfigurationKey": "example"
6057
}
6158
}

src/charge_point.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int main(int argc, char* argv[]) {
9393
fs.close();
9494
}
9595

96-
const fs::path sql_init_path = share_path / "init.sql";
96+
const fs::path sql_init_path = share_path / "core_migrations";
9797

9898
// create the cso_path
9999
const fs::path cso_path = "/tmp/client/cso";

0 commit comments

Comments
 (0)