Skip to content
Snippets Groups Projects
Unverified Commit 7bf19294 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #296 from jcarpent/topic/ci

Enhance CI by testing hpp-fcl
parents 3250cded a1a05b85
No related branches found
No related tags found
No related merge requests found
Pipeline #20633 passed with warnings
...@@ -53,6 +53,17 @@ jobs: ...@@ -53,6 +53,17 @@ jobs:
make test make test
make install make install
- name: Configure hpp-fcl
shell: bash -l {0}
run: |
conda activate eigenpy
conda install -c conda-forge octomap assimp qhull
git clone https://github.com/humanoid-path-planner/hpp-fcl.git --recursive
cd hpp-fcl
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3)
- name: Uninstall EigenPy - name: Uninstall EigenPy
shell: bash -l {0} shell: bash -l {0}
run: | run: |
......
...@@ -30,9 +30,11 @@ jobs: ...@@ -30,9 +30,11 @@ jobs:
set BOOST_ROOT_1_69_0= set BOOST_ROOT_1_69_0=
set BOOST_ROOT_1_72_0= set BOOST_ROOT_1_72_0=
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=% set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
if errorlevel 1 exit 1
:: start building :: start building
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 call "%programfiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
if errorlevel 1 exit 1
mkdir build mkdir build
pushd build pushd build
cmake ^ cmake ^
...@@ -43,17 +45,41 @@ jobs: ...@@ -43,17 +45,41 @@ jobs:
-DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^ -DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^ -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
.. ..
if errorlevel 1 exit 1
:: Build and Install :: Build and Install
cmake --build . --config Release --target install cmake --build . --config Release --target install
if errorlevel 1 exit 1
:: Build stubs :: Build stubs
git clone https://github.com/jcarpent/pybind11-stubgen.git git clone https://github.com/jcarpent/pybind11-stubgen.git
python "%CD%\pybind11-stubgen\pybind11_stubgen\__init__.py" -o %CONDA_PREFIX%\Lib\site-packages\eigenpy eigenpy --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix "" python "%CD%\pybind11-stubgen\pybind11_stubgen\__init__.py" -o %CONDA_PREFIX%\Lib\site-packages\eigenpy eigenpy --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix ""
if errorlevel 1 exit 1
:: Testing :: Testing
ctest --output-on-failure -C Release -V ctest --output-on-failure -C Release -V
if errorlevel 1 exit 1
:: Test Python import :: Test Python import
cd .. cd ..
python -c "import eigenpy" python -c "import eigenpy"
if errorlevel 1 exit 1
:: Test packaging
conda install -c conda-forge octomap assimp qhull
git clone --recursive https://github.com/humanoid-path-planner/hpp-fcl.git
pushd hpp-fcl
mkdir build
pushd build
cmake ^
-G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=Release ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
..
cd ..
if errorlevel 1 exit 1
:: Uninstall
cmake --build . --config Release --target uninstall
if errorlevel 1 exit 1
Subproject commit cf8b78dd9cdb220e77623d2997bf223f39da563f Subproject commit 500a3a628496df029671fcd1240be5eec0a9d3f9
...@@ -63,5 +63,7 @@ SET_TESTS_PROPERTIES("py-LLT" PROPERTIES DEPENDS ${PYWRAP}) ...@@ -63,5 +63,7 @@ SET_TESTS_PROPERTIES("py-LLT" PROPERTIES DEPENDS ${PYWRAP})
ADD_PYTHON_UNIT_TEST("py-LDLT" "unittest/python/test_LDLT.py" "python;unittest") ADD_PYTHON_UNIT_TEST("py-LDLT" "unittest/python/test_LDLT.py" "python;unittest")
SET_TESTS_PROPERTIES("py-LDLT" PROPERTIES DEPENDS ${PYWRAP}) SET_TESTS_PROPERTIES("py-LDLT" PROPERTIES DEPENDS ${PYWRAP})
ADD_PYTHON_UNIT_TEST("py-MINRES" "unittest/python/test_MINRES.py" "python;unittest") IF(NOT WIN32)
SET_TESTS_PROPERTIES("py-MINRES" PROPERTIES DEPENDS ${PYWRAP}) ADD_PYTHON_UNIT_TEST("py-MINRES" "unittest/python/test_MINRES.py" "python;unittest")
SET_TESTS_PROPERTIES("py-MINRES" PROPERTIES DEPENDS ${PYWRAP})
ENDIF(NOT WIN32)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment