New upstream version 1.0.1

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

language: cpp
env:
global:
ExternalData_OBJECT_STORES=${HOME}/.ExternalData
SIMPLEITK_SRC_DIR=${TRAVIS_BUILD_DIR}
SIMPLEITK_BUILD_DIR=${SIMPLEITK_SRC_DIR}/bld
CMAKE_DOWNLOAD_FILE=cmake-3.6.0-Linux-x86_64.sh
cache:
directories:
- ${ExternalData_OBJECT_STORES}
matrix:
include:
- os: linux
dist: trusty
sudo: required
before_script:
- sudo apt-get remove cmake && sudo apt-get install swig lua5.1 libinsighttoolkit4-dev doxygen graphviz
- cd ${ExternalData_OBJECT_STORES} && if [[ ! -e ${CMAKE_DOWNLOAD_FILE} ]]; then curl -sSO https://cmake.org/files/v3.6/${CMAKE_DOWNLOAD_FILE}; fi
- echo "y\n" | sudo bash "${ExternalData_OBJECT_STORES}/${CMAKE_DOWNLOAD_FILE}" --prefix=/usr/local --exclude-subdir
- cmake --version
- mkdir -p ${SIMPLEITK_BUILD_DIR}
script:
- cd ${SIMPLEITK_BUILD_DIR}
- sed -iBAK -e "s/ITKImageNoise/#ITKImageNoise/" ${SIMPLEITK_SRC_DIR}/CMake/sitkCheckForITKModuleDependencies.cmake ${SIMPLEITK_SRC_DIR}/Code/BasicFilters/src/CMakeLists.txt
- cmake -DWRAP_LUA:BOOL=OFF -DWRAP_PYTHON:BOOL=OFF -DWRAP_JAVA:BOOL=OFF -DWRAP_CSHARP:BOOL=OFF -DWRAP_TCL:BOOL=OFF -DWRAP_R:BOOL=OFF -DWRAP_RUBY:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF -DBUILD_DOXYGEN:BOOL=ON -DCMAKE_BUILD_TYPE=Release "${SIMPLEITK_SRC_DIR}"
- make Documentation
- tar czf ~/Documentation.tgz Documentation
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS 99)
SET (CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 999)
# test to ignore for memcheck
SET (CTEST_CUSTOM_MEMCHECK_IGNORE
"ProcessObjectDeathTest.DeleteCommandActiveProcess"
)
SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
${CTEST_CUSTOM_COVERAGE_EXCLUDE}
# Exclude try_compile sources from coverage results:
"/CMakeFiles/CMakeTmp/"
# Exclude files from the Testing directories
".*/Testing/.*"
# Exclude files from the Utilities directories
".*/Utilities/.*"
# exclude certain wrapping files
"/Wrapping/SimpleITKLuaMain.cxx"
"/Wrapping/.*_wrap.cxx"
)
SET(CTEST_CUSTOM_WARNING_EXCEPTION
${CTEST_CUSTOM_WARNING_EXCEPTION}
# Ignore warning for files with no symbols
"warning LNK4221.*not define any previously undefined public symbols"
"warning LNK4221.*no public symbols found"
".*ranlib:.*file:.*has no symbols"
"libtool:.*file:.*has no symbols"
# Ignore warning building SWIG
"Swig-prefix/src/Swig"
"parser.y.*warning"
# Ignore warning building PCRE
"PCRE-prefix/src/PCRE"
# Ignore apple warning
"ld.*warning.*duplicate dylib.*"
# Ignore warning from the SWIG wrapped file ( not much we can do about those )
".*_wrap.cxx"
# Ignore warning in lua about the use of `tmpnam' is dangerous
"loslib"
# RH5 GCC 4.1 is producing warnings internally for functional headers
"mu_iterate.h.*warning? unused parameter '__tuple'"
# Ignore CSharp invalid version warning for dev
"warning CS1607.*The version number.*dev.*is invalid"
"warning CS1607.*The version.*dev.*is not in the normal"
# Warning when building R, issue related to make file
"warning: jobserver unavailable:"
# Warning when compiling ITK v4.5.1 with clang
"clang: warning: argument unused during.*-fno-ipa-cp-clone"
# Warning from RHEL5 GCC 4.1 about visibility change
"warning: lowering visibility of .* to match its type"
# Warning from SWIG with self member type
"sitkCommand.* [wW]arning 314.*self.*is a python keyword"
# Warning from RH5 gcc 4.1.2
"tr1/mu_iterate.h.* warning: unused parameter '__tuple'"
)
SET(CTEST_CUSTOM_ERROR_EXCEPTION
${CTEST_CUSTOM_ERROR_EXCEPTION}
# Error to ignore on Windows during wheel production
"pep425tags.*RuntimeWarning.*ABI tag may be incorrect"
)
This diff is collapsed.
set(ExternalData_OBJECT_STORES "@ExternalData_OBJECT_STORES@")
set(ExternalData_URL_TEMPLATES "@ExternalData_URL_TEMPLATES@")
set(ExternalData_TIMEOUT_INACTIVITY "@ExternalData_TIMEOUT_INACTIVITY@")
set(ExternalData_TIMEOUT_ABSOLUTE "@ExternalData_TIMEOUT_ABSOLUTE@")
set(ExternalData_NO_SYMLINKS "@ExternalData_NO_SYMLINKS@")
@_ExternalData_CONFIG_CODE@
#
# A CMake Module for finding and using C# (.NET and Mono).
#
# The following variables are set:
# CSHARP_FOUND - set to ON if C# is found
# CSHARP_USE_FILE - the path to the C# use file
# CSHARP_TYPE - the type of the C# compiler (eg. ".NET" or "Mono")
# CSHARP_VERSION - the version of the C# compiler (eg. "v4.0" or "2.10.2")
# CSHARP_COMPILER - the path to the C# compiler executable (eg. "C:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe" or "/usr/bin/gmcs")
# CSHARP_INTERPRETER - the path to interpreter needed to run CSharp executables
# CSHARP_PLATFORM - the C# target platform
# CSHARP_SDK - the SDK commandline switch (empty for .NET, for Mono eg. "/sdk:2" or "/sdk:4")
#
# This file is based on the work of GDCM:
# http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindCSharp.cmake
# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre@gmail.com>
#
# TODO: ADD ABILITY TO SELECT WHICH C# COMPILER eg. .NET or Mono (if both exist). For the moment, .NET is selected above Mono.
# Make sure find package macros are included
include( FindPackageHandleStandardArgs )
unset( CSHARP_COMPILER CACHE )
unset( CSHARP_INTERPRETER CACHE )
unset( CSHARP_TYPE CACHE )
unset( CSHARP_VERSION CACHE )
unset( CSHARP_FOUND CACHE )
# By default use anycpu platform, allow the user to override
set( CSHARP_PLATFORM "anycpu" CACHE STRING "C# target platform: x86, x64, anycpu, or itanium" )
if( NOT ${CSHARP_PLATFORM} MATCHES "x86|x64|anycpu|itanium" )
message( FATAL_ERROR "The C# target platform '${CSHARP_PLATFORM}' is not valid. Please enter one of the following: x86, x64, anycpu, or itanium" )
endif( )
if( WIN32 )
find_package( DotNetFrameworkSdk )
if( NOT CSHARP_DOTNET_FOUND )
find_package( Mono )
endif( )
else( UNIX )
find_package( Mono )
endif( )
if( CSHARP_DOTNET_FOUND )
set( CSHARP_TYPE ".NET" CACHE STRING "Using the .NET compiler" )
set( CSHARP_VERSION ${CSHARP_DOTNET_VERSION} CACHE STRING "C# .NET compiler version" FORCE )
set( CSHARP_COMPILER ${CSHARP_DOTNET_COMPILER_${CSHARP_DOTNET_VERSION}} CACHE STRING "Full path to .NET compiler" FORCE )
set( CSHARP_INTERPRETER "" CACHE INTERNAL "Interpretor not required for .NET" FORCE )
elseif( CSHARP_MONO_FOUND )
set( CSHARP_TYPE "Mono" CACHE STRING "Using the Mono compiler" )
set( CSHARP_VERSION ${CSHARP_MONO_VERSION} CACHE STRING "C# Mono compiler version" FORCE )
set( CSHARP_COMPILER ${CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION}} CACHE STRING "Full path to Mono compiler" FORCE )
set( CSHARP_INTERPRETER ${CSHARP_MONO_INTERPRETER_${CSHARP_MONO_VERSION}} CACHE STRING "Full path to Mono interpretor" FORCE )
set( CSHARP_SDK "/sdk:2" CACHE STRING "C# Mono SDK commandline switch (e.g. /sdk:2, /sdk:4, /sdk:5)" )
endif( )
# Handle WIN32 specific issues
if ( WIN32 )
if ( CSHARP_COMPILER MATCHES "bat" )
set( CSHARP_COMPILER "call ${CSHARP_COMPILER}" )
endif ( )
endif( )
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CSharp DEFAULT_MSG CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER)
mark_as_advanced( CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER CSHARP_INTERPRETER CSHARP_PLATFORM CSHARP_SDK )
# Set the USE_FILE path
# http://public.kitware.com/Bug/view.php?id=7757
get_filename_component( current_list_path ${CMAKE_CURRENT_LIST_FILE} PATH )
set( CSHARP_USE_FILE ${current_list_path}/UseCSharp.cmake )
#
# A CMake Module for finding C# .NET.
#
# The following variables are set:
# CSHARP_DOTNET_FOUND
# CSHARP_DOTNET_COMPILER_${version} eg. "CSHARP_DOTNET_COMPILER_v4.0.30319"
# CSHARP_DOTNET_VERSION eg. "v4.0.30319"
# CSHARP_DOTNET_VERSIONS eg. "v2.0.50727, v3.5, v4.0.30319"
# DotNetFrameworkSdk_USE_FILE
#
# Additional references can be found here:
# .NET SDK 1.1: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-9f41-a333c6b9181d&displaylang=en
# .NET SDK 2.0: http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en
# .NET SDK 3.5: http://www.microsoft.com/downloads/details.aspx?familyid=333325fd-ae52-4e35-b531-508d977d32a6&displaylang=en
<