message: Split travis CI builds between applications and tests
diff: @@ -15,22 +15,40 @@ matrix:
  include:
  - os: osx
  compiler: clang
  - env: ITK_VERSION=v4.5.0 CUDA=NONE
  + env: ITK_VERSION=v4.5.0 CUDA=NONE TESTING=ON APPLICATIONS=OFF
  - os: osx
  compiler: clang
  - env: ITK_VERSION=v4.10.0 CUDA=NONE
  + env: ITK_VERSION=v4.5.0 CUDA=NONE TESTING=OFF APPLICATIONS=ON
  + - os: osx
  + compiler: clang
  + env: ITK_VERSION=v4.10.0 CUDA=NONE TESTING=ON APPLICATIONS=OFF
  + - os: osx
  + compiler: clang
  + env: ITK_VERSION=v4.10.0 CUDA=NONE TESTING=OFF APPLICATIONS=ON
  + - os: linux
  + compiler: gcc
  + env: ITK_VERSION=v4.2.0 CUDA=NONE TESTING=ON APPLICATIONS=OFF
  + - os: linux
  + compiler: gcc
  + env: ITK_VERSION=v4.2.0 CUDA=NONE TESTING=OFF APPLICATIONS=ON
  + - os: linux
  + compiler: gcc
  + env: ITK_VERSION=v4.10.0 CUDA=NONE TESTING=ON APPLICATIONS=OFF
  + - os: linux
  + compiler: gcc
  + env: ITK_VERSION=v4.10.0 CUDA=NONE TESTING=OFF APPLICATIONS=ON
  - os: linux
  compiler: gcc
  - env: ITK_VERSION=v4.2.0 CUDA=NONE
  + env: ITK_VERSION=v4.2.0 CUDA=7.5-18 TESTING=ON APPLICATIONS=OFF
  - os: linux
  compiler: gcc
  - env: ITK_VERSION=v4.10.0 CUDA=NONE
  + env: ITK_VERSION=v4.2.0 CUDA=7.5-18 TESTING=OFF APPLICATIONS=ON
  - os: linux
  compiler: gcc
  - env: ITK_VERSION=v4.2.0 CUDA=7.5-18
  + env: ITK_VERSION=v4.10.0 CUDA=7.5-18 TESTING=ON APPLICATIONS=OFF
  - os: linux
  compiler: gcc
  - env: ITK_VERSION=v4.10.0 CUDA=7.5-18
  + env: ITK_VERSION=v4.10.0 CUDA=7.5-18 TESTING=OFF APPLICATIONS=ON
  cache:
  - directories:
  @@ -81,6 +99,7 @@ before_script:
  script:
  - if ! test -d build; then mkdir build; fi
  - cd build
  + - CMAKE_OPTIONS="-DBUILD_APPLICATIONS=${APPLICATIONS} -DBUILD_TESTING=${TESTING} ${CMAKE_OPTIONS}"
  - if test $TRAVIS_OS_NAME == linux ; then export CMAKE_OPTIONS="-DRTK_USE_KWSTYLE=ON"; fi
  - cmake .. $CMAKE_OPTIONS
  - if test $TRAVIS_OS_NAME == linux ; then make StyleCheckCode; fi
  