Commit d1be8bd0 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: add Python testing

parent 402ebae8
......@@ -21,6 +21,7 @@ matrix:
libglvnd-dev
libglu1-mesa-dev
python3-numpy
python3-dev
env:
- OTB_OS=Linux64
- OTB_PKG_EXT=run
......@@ -50,6 +51,7 @@ install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then source xdk/otbenv.bash ; fi
- cp GenerateExportHeaderCustom.cmake xdk/lib/cmake/OTB-6.7
- cp exportheader.cmake.in xdk/lib/cmake/OTB-6.7
- ctest -S xdk/share/otb/swig/build_wrapping.cmake -VV
script:
- ctest -VV -S ./ci.cmake
......@@ -8,6 +8,8 @@ if(NOT OTB_SOURCE_DIR)
list(APPEND CMAKE_MODULE_PATH ${OTB_CMAKE_DIR})
include(UseOTB)
include(GenerateExportHeaderCustom)
set(Python_ADDITIONAL_VERSIONS "3")
find_package( PythonInterp REQUIRED)
include(OTBModuleExternal)
else()
otb_module_impl()
......
......@@ -19,3 +19,6 @@ otb_add_test(NAME otbDeleteMeEmptyTest
otb_test_application(NAME otbEmptyAppTest
APP EmptyApp
)
otb_add_test(NAME otbEmptyScriptTest
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EmptyScript.py)
#!/usr/bin/env python
import otbApplication as otb
app = otb.Registry.CreateApplication("EmptyApp")
app.ExecuteAndWriteOutput()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment