-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor cmake related to python packaging
* Bump required `everest-cmake` version to `0.3` * Add cmake variables to configure python wheels (install prefix) * Run custom python commands in venv located in build dir * Setup `ev-cli` automatically by installing it from source in to venv Refactor CI * Split into multiple jobs: `Lint`, `Build and Test` and `Run Integration Tests` * Upload dist directory as artifact * Upload wheel files as artifact * Upload result.xml and report.html as artifact * Render result summary
- Loading branch information
Showing
12 changed files
with
170 additions
and
39 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,12 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cmake \ | ||
-B build \ | ||
-B "$EXT_MOUNT/build" \ | ||
-S "$EXT_MOUNT/source" \ | ||
-G Ninja \ | ||
-DEVC_ENABLE_CCACHE=1 \ | ||
-DISO15118_2_GENERATE_AND_INSTALL_CERTIFICATES=OFF \ | ||
-DCMAKE_INSTALL_PREFIX="$WORKSPACE_PATH/dist" \ | ||
-DCMAKE_INSTALL_PREFIX="$EXT_MOUNT/dist" \ | ||
-DWHEEL_INSTALL_PREFIX="$EXT_MOUNT/dist-wheels" \ | ||
-DBUILD_TESTING=ON | ||
|
||
ninja -j$(nproc) -C build | ||
ninja -j$(nproc) -C "$EXT_MOUNT/build" |
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,8 @@ | ||
#!/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 |
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,11 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# ninja -j$(nproc) -C build tests | ||
ninja -j$(nproc) -C build install | ||
|
||
# install everest testing by cmake target to make sure using the version defined in dependencies.yaml | ||
ninja -C build install_everest_testing | ||
set -e | ||
|
||
rsync -a "$EXT_MOUNT/source/tests" ./ | ||
|
||
rm -rf build | ||
pip install $EXT_MOUNT/wheels/everestpy-*.whl | ||
pip install $EXT_MOUNT/wheels/everest_testing-*.whl | ||
pip install pytest-html |
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,5 @@ | ||
#!/bin/sh | ||
|
||
ninja -j$(nproc) -C build test | ||
set -e | ||
|
||
ninja -C "$EXT_MOUNT/build" test |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cd tests | ||
pytest --everest-prefix ../dist core_tests/*.py framework_tests/*.py | ||
pytest \ | ||
-rA \ | ||
--junitxml="$EXT_MOUNT/result.xml" \ | ||
--html="$EXT_MOUNT/report.html" \ | ||
--self-contained-html \ | ||
core_tests/*.py \ | ||
framework_tests/*.py \ | ||
--everest-prefix "$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
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
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
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