language: cpp

compiler:
  - clang

before_install:
  - sudo add-apt-repository --yes ppa:jamie-snape/tubetk
  - sudo apt-get update -qq
  - sudo apt-get install -qq libinsighttoolkit-dev libjsoncpp-dev libvtk-dev

before_script:
  - wget -P /tmp http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
  - tar xz -C /tmp -f /tmp/cmake-3.2.2.tar.gz
  - cd /tmp/cmake-3.2.2 && ./configure --prefix=/usr/local -- -DCMAKE_USE_OPENSSL:BOOL=ON
  - cd /tmp/cmake-3.2.2 && make -j4 && sudo make install

script:
  - mkdir _build
  - cd _build
  - cmake -DUSE_SYSTEM_ITK:BOOL=ON -DUSE_SYSTEM_JSONCPP:BOOL=ON -DUSE_SYSTEM_VTK:BOOL=ON -DTubeTK_USE_QT:BOOL=OFF -DTubeTK_USE_LIBSVM:BOOL=OFF -DTubeTK_USE_PYTHON:BOOL=OFF -DTubeTK_USE_KWSTYLE:BOOL=OFF ..
  - cmake --build .

language: cpp

compiler:
  - clang

before_install:
  - sudo add-apt-repository --yes ppa:jamie-snape/tubetk
  - sudo apt-get update -qq
  - sudo apt-get install -qq libinsighttoolkit-dev libjsoncpp-dev libvtk-dev

before_script:
  - wget -P /tmp http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
  - tar xz -C /tmp -f /tmp/cmake-3.2.2.tar.gz
  - cd /tmp/cmake-3.2.2 && ./configure --prefix=/usr/local -- -DCMAKE_USE_OPENSSL:BOOL=ON
  - cd /tmp/cmake-3.2.2 && make -j4 && sudo make install

script:
  - rm -rf _build
  - mkdir _build
  - cd _build
  - cmake -DUSE_SYSTEM_ITK:BOOL=ON -DUSE_SYSTEM_JSONCPP:BOOL=ON -DUSE_SYSTEM_VTK:BOOL=ON -DTubeTK_USE_QT:BOOL=OFF -DTubeTK_USE_LIBSVM:BOOL=OFF -DTubeTK_USE_PYTHON:BOOL=OFF -DTubeTK_USE_KWSTYLE:BOOL=OFF ..
  - cmake --build .

Remove and recreate project build directory
Remove and recreate project build directory
