Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis: update matrix to build with python 3.4 #524

Closed
wants to merge 12 commits into from
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: cpp

# Use container-based infrastructure
sudo: false
dist: trusty

language: cpp

os:
- linux
Expand All @@ -25,7 +26,7 @@ env:
- CI_NODE_TOTAL=2
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.2
- PYTHON_VERSION=3.4

matrix:
allow_failures:
Expand Down Expand Up @@ -74,7 +75,7 @@ after_failure:

addons:
apt:
sources: ['boost-latest', 'kalakris-cmake', 'kubuntu-backports', 'pythonxy-devel']
sources: ['boost-latest', 'kalakris-cmake', 'kubuntu-backports', 'pythonxy-devel', 'deadsnakes']
packages:
- cmake
- swig
Expand All @@ -83,7 +84,7 @@ addons:
- python-imaging
- python-numpy
- python-nose
- python3-dev
- python3.4-dev
- python3-setuptools
- python3-nose
- libfreetype6-dev
Expand All @@ -109,7 +110,7 @@ addons:
- libmagickcore-dev
- liblcms2-dev
- libyaml-dev
- libopenctl0.8
# - libopenctl0.8
- libcaca-dev
- libglui-dev
- libtinyxml-dev
Expand Down
4 changes: 4 additions & 0 deletions applications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ add_subdirectory(sam)
# scripts
add_subdirectory(script)

if(NOT TUTTLE_PYTHON_VERSION)
return()
endif()

# Edit python scripts if the host is built with python3
if(${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
set(BASH_PYTHON2 "#!/usr/bin/env python")
Expand Down
1 change: 1 addition & 0 deletions libraries/tuttle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ if (TuttleBoost_FOUND)
include(${SWIG_USE_FILE})

# Find python c libs
set(Python_ADDITIONAL_VERSIONS ${TUTTLE_PYTHON_VERSION})
find_package(PythonLibs ${TUTTLE_PYTHON_VERSION})
set(TUTTLE_PYTHON_VERSION ${PYTHONLIBS_VERSION_STRING})
include_directories(${PYTHON_INCLUDE_DIRS})
Expand Down
3 changes: 1 addition & 2 deletions tools/travis/launch_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ git clone https://github.com/tuttleofx/TuttleOFX-data.git
ln -s ${TRAVIS_BUILD_DIR}/TuttleOFX-data ${TRAVIS_BUILD_DIR}/libraries/tuttle/pyTest/TuttleOFX-data
if [[ ${PYTHON_VERSION} == "2.7" ]]; then
nosetests ${TRAVIS_BUILD_DIR}/libraries/tuttle/pyTest -v
elif [[ ${PYTHON_VERSION} == "3.2" ]]; then
elif [[ ${PYTHON_VERSION} == "3.4" ]]; then
nosetests3 ${TRAVIS_BUILD_DIR}/libraries/tuttle/pyTest -v
fi


# boost unit tests
ln -s ${TRAVIS_BUILD_DIR}/TuttleOFX-data ${TRAVIS_BUILD_DIR}/testBin/TuttleOFX-data
cd ${TUTTLEOFX_BUILD}
Expand Down