language: cpp
compiler:
  - gcc
  - clang
before_install:
  - 'ci/before_install.sh'
env:
  global:
  matrix:
    - BUILD_CORE_ONLY=OFF BUILD_TYPE=Debug
    - BUILD_CORE_ONLY=OFF BUILD_TYPE=Release
    - BUILD_CORE_ONLY=ON BUILD_TYPE=Debug
    - BUILD_CORE_ONLY=ON BUILD_TYPE=Release
before_script: cmake -DBUILD_CORE_ONLY=$BUILD_CORE_ONLY -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
script:
  - make
  - sudo ldconfig --verbose # So the test executeables can detect libtinyxml2
  - if [ $BUILD_CORE_ONLY = OFF ]; then make test; fi
  - cd tools/
  # - ./code_check.sh
  # - ./abi_check.sh 4.1.0  # Check with DART 4.1.0
after_failure:
  - cat Testing/Temporary/LastTest.log
  - cat Testing/Temporary/LastTestsFailed.log

language: cpp
compiler:
  #- gcc  # Disabled gcc version is 4.6.3 while DART requires 4.7.0 or greater
  - clang
before_install:
  - 'ci/before_install.sh'
env:
  global:
  matrix:
    - BUILD_CORE_ONLY=OFF BUILD_TYPE=Debug
    - BUILD_CORE_ONLY=OFF BUILD_TYPE=Release
    - BUILD_CORE_ONLY=ON BUILD_TYPE=Debug
    - BUILD_CORE_ONLY=ON BUILD_TYPE=Release
before_script: cmake -DBUILD_CORE_ONLY=$BUILD_CORE_ONLY -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
script:
  - make
  - sudo ldconfig --verbose # So the test executeables can detect libtinyxml2
  - if [ $BUILD_CORE_ONLY = OFF ]; then make test; fi
  - cd tools/
  # - ./code_check.sh
  # - ./abi_check.sh 4.1.0  # Check with DART 4.1.0
after_failure:
  - cat Testing/Temporary/LastTest.log
  - cat Testing/Temporary/LastTestsFailed.log

Disable gcc for Travis-CI because the gcc version is 4.6.3 while DART require 4.7.0 or greater
Disable gcc for Travis-CI because the gcc version is 4.6.3 while DART require 4.7.0 or greater
