language: cpp
compiler:
  - clang
  - gcc
env:
  - SPII_BUILD_TYPE=Debug
  - SPII_BUILD_TYPE=Release
before_install:
 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
 - sudo apt-get update -qq
 - sudo apt-get install -qq libeigen3-dev
 - sudo apt-get install -qq g++-4.8
 - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
  - mkdir build
  - cd build
  - cmake -DOPENMP=OFF -DCMAKE_BUILD_TYPE=${SPII_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=/usr .. 
script: 
  - make && ctest --output-on-failure && sudo make install
after_success:
  - cd ..
  - cd examples
  - ${CXX} -std=c++0x -I/usr/include/eigen3 -I/usr/local/include/eigen3 standalone_example.cpp -lspii
  - ./a.out

branches:
  only:
    - master

language: cpp
compiler:
#  - clang
  - gcc
env:
  - SPII_BUILD_TYPE=Debug
  - SPII_BUILD_TYPE=Release
before_install:
 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
 - sudo apt-get update -qq
 - sudo apt-get install -qq libeigen3-dev
 - sudo apt-get install -qq g++-4.8
 - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
  - mkdir build
  - cd build
  - cmake -DOPENMP=OFF -DCMAKE_BUILD_TYPE=${SPII_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=/usr .. 
script: 
  - make && ctest --output-on-failure && sudo make install
after_success:
  - cd ..
  - cd examples
  - ${CXX} -std=c++0x -I/usr/include/eigen3 -I/usr/local/include/eigen3 standalone_example.cpp -lspii
  - ./a.out

branches:
  only:
    - master

Disable Clang (does not work with std::complex).
CI: Disable Clang (does not work with std::complex).
