Commit 1460daab authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: use system python3.6 on linux

parent c921990d
......@@ -16,8 +16,12 @@ matrix:
compiler: gcc
sudo: required
before_install:
- sudo apt-get install -y ninja-build libglvnd-dev libglu1-mesa-dev
- sudo pip3 install numpy
- sudo apt-get install -y
ninja-build
libglvnd-dev
libglu1-mesa-dev
python3-dev
python3-numpy
env:
- OTB_OS=Linux64
- os: osx
......
......@@ -26,7 +26,13 @@ else()
endif()
set(CTEST_BUILD_NAME "$ENV{TRAVIS_BRANCH}")
set(CTEST_SITE "ubuntu-$ENV{TRAVIS_DIST}-$ENV{TRAVIS_COMPILER}")
set(CTEST_SITE "$ENV{TRAVIS_OS_NAME}")
if("${CTEST_SITE}" STREQUAL "linux")
set(CTEST_SITE "${CTEST_SITE}-$ENV{TRAVIS_DIST}")
elseif("${CTEST_SITE}" STREQUAL "osx")
set(CTEST_SITE "${CTEST_SITE}-$ENV{TRAVIS_OSX_IMAGE}")
endif()
set(CTEST_SITE "${CTEST_SITE}-$ENV{TRAVIS_COMPILER}")
set(CTEST_PROJECT_NAME "${otb-module}")
set(CTEST_DROP_METHOD "https")
......@@ -63,9 +69,20 @@ BUILD_TESTING:BOOL=ON
OTB_BUILD_MODULE_AS_STANDALONE:BOOL=ON
CMAKE_PREFIX_PATH:PATH=${REMOTE_MODULE_SOURCE_DIR}/xdk
CMAKE_INSTALL_PREFIX:PATH=${CTEST_INSTALL_DIRECTORY}
CMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}
OpenGL_GL_PREFERENCE=GLVND
")
CMAKE_BUILD_TYPE=${CTEST_BUILD_CONFIGURATION}")
if(UNIX AND NOT APPLE)
set(all_options
"${all_options}
OpenGL_GL_PREFERENCE=GLVND")
endif()
if(APPLE)
set(all_options
"${all_options}
CMAKE_MACOSX_RPATH=TRUE")
endif()
string (REPLACE "\n" ";" rm_options ${all_options})
foreach(item ${rm_options})
set( CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS}-D${item};")
......
Markdown is supported
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