-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into doc/powermeter_error_handling
- Loading branch information
Showing
416 changed files
with
43,834 additions
and
5,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG BASE_IMAGE_TAG=latest | ||
FROM ghcr.io/everest/everest-ci/build-kit-base:${BASE_IMAGE_TAG} | ||
|
||
# Can be used to use an other version of everest-cmake | ||
# ENV EVEREST_CMAKE_PATH=/usr/lib/cmake/everest-cmake | ||
# ENV EVEREST_CMAKE_VERSION=<everest-cmake-verion> | ||
# RUN rm -rf ${EVEREST_CMAKE_PATH} \ | ||
# && git clone https://github.com/EVerest/everest-cmake.git ${EVEREST_CMAKE_PATH} \ | ||
# && cd ${EVEREST_CMAKE_PATH} \ | ||
# && git checkout ${EVEREST_CMAKE_VERSION} \ | ||
# && rm -r .git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cmake \ | ||
-B "$EXT_MOUNT/build" \ | ||
-S "$EXT_MOUNT/source" \ | ||
-G Ninja \ | ||
-DEVC_ENABLE_CCACHE=1 \ | ||
-DISO15118_2_GENERATE_AND_INSTALL_CERTIFICATES=OFF \ | ||
-DCMAKE_INSTALL_PREFIX="$EXT_MOUNT/dist" \ | ||
-DWHEEL_INSTALL_PREFIX="$EXT_MOUNT/dist-wheels" \ | ||
-DWHEEL_INSTALL_PREFIX="$EXT_MOUNT/wheels" \ | ||
-DBUILD_TESTING=ON \ | ||
-DEVEREST_ENABLE_COMPILE_WARNINGS=ON | ||
retVal=$? | ||
if [ $retVal -ne 0 ]; then | ||
echo "Configuring failed with return code $retVal" | ||
exit $retVal | ||
fi | ||
|
||
ninja -j$(nproc) -C "$EXT_MOUNT/build" | ||
ninja -C "$EXT_MOUNT/build" | ||
retVal=$? | ||
if [ $retVal -ne 0 ]; then | ||
echo "Compiling failed with return code $retVal" | ||
exit $retVal | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
rsync -a "$EXT_MOUNT/source/tests" ./ | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Failed to copy tests" | ||
exit $retVal | ||
fi | ||
|
||
pip install --break-system-packages \ | ||
$EXT_MOUNT/wheels/everestpy-*.whl \ | ||
$EXT_MOUNT/wheels/everest_testing-*.whl \ | ||
pytest-html | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Failed to pip-install" | ||
exit $retVal | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
rsync -a "$EXT_MOUNT/source/tests" ./ | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Failed to copy tests" | ||
exit $retVal | ||
fi | ||
|
||
pip install --break-system-packages \ | ||
"$EXT_MOUNT"/wheels/everestpy-*.whl \ | ||
"$EXT_MOUNT"/wheels/everest_testing-*.whl \ | ||
"$EXT_MOUNT"/wheels/iso15118-*.whl \ | ||
pytest-html | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Failed to pip-install" | ||
exit $retVal | ||
fi | ||
|
||
pip install --break-system-packages -r tests/ocpp_tests/requirements.txt | ||
|
||
$(cd ./tests/ocpp_tests/test_sets/everest-aux/ && ./install_certs.sh "$EXT_MOUNT/dist" && ./install_configs.sh "$EXT_MOUNT/dist") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
ninja -C "$EXT_MOUNT/build" install | ||
ninja -C "$EXT_MOUNT/build" everestpy_install_wheel | ||
ninja -C "$EXT_MOUNT/build" everest-testing_install_wheel | ||
ninja -C "$EXT_MOUNT/build" iso15118_install_wheel | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Installation failed with return code $retVal" | ||
exit $retVal | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
ninja -C "$EXT_MOUNT/build" \ | ||
everestpy_install_wheel \ | ||
everest-testing_install_wheel \ | ||
iso15118_install_wheel | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "Wheel Installation failed with return code $retVal" | ||
exit $retVal | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
ninja -C "$EXT_MOUNT/build" test | ||
retVal=$? | ||
|
||
trap "cp $EXT_MOUNT/build/Testing/Temporary/LastTest.log $EXT_MOUNT/ctest-report" EXIT | ||
# Copy the LastTest.log file to the mounted directory in any case | ||
cp "$EXT_MOUNT/build/Testing/Temporary/LastTest.log" "$EXT_MOUNT/ctest-report" | ||
|
||
ninja -C "$EXT_MOUNT/build" test | ||
if [ $retVal -ne 0 ]; then | ||
echo "Unit tests failed with return code $retVal" | ||
exit $retVal | ||
fi | ||
|
||
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
cd tests | ||
|
||
PARALLEL_TESTS=$(nproc) | ||
|
||
echo "Running $PARALLEL_TESTS ocpp tests in parallel" | ||
|
||
pytest \ | ||
-rA \ | ||
-d --tx "$PARALLEL_TESTS"*popen//python=python3 \ | ||
--max-worker-restart=0 \ | ||
--timeout=300 \ | ||
--junitxml="$EXT_MOUNT/ocpp-tests-result.xml" \ | ||
--html="$EXT_MOUNT/ocpp-tests-report.html" \ | ||
--self-contained-html \ | ||
ocpp_tests/test_sets/ocpp16/*.py \ | ||
ocpp_tests/test_sets/ocpp201/*.py \ | ||
--everest-prefix "$EXT_MOUNT/dist" | ||
retVal=$? | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "OCPP tests failed with return code $retVal" | ||
exit $retVal | ||
fi |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.