# travis-ci.org build file

# As CMake is not officially supported we use erlang VMs
language: erlang

# Settings to try
env:
  - OPTIONS="-DCMAKE_BUILD_TYPE=Release -DOCIO_BUILD_TESTS=yes"

# Make sure CMake is installed
install:
 - sudo apt-get install cmake

# Run the Build script
script:
 - mkdir _build
 - cd _build
 - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
 - cmake --build . --target install

# Run Tests
after_script:
 - ctest --output-on-failure .

# travis-ci.org build file
# https://docs.travis-ci.com/user/languages/cpp

language: cpp

compiler:
  - clang
  - gcc

os:
  - linux
  - osx

env:
  - OPTIONS="-DCMAKE_BUILD_TYPE=Release -DOCIO_BUILD_TESTS=yes"

# Run the Build script
script:
 - mkdir _build
 - cd _build
 - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
 - cmake --build . --target install

# Run Tests
after_script:
 - ctest --output-on-failure .

Update Travis-CI now it officially supports C++ projects
Update Travis-CI now it officially supports C++ projects

Also test with clang and gcc, on linux and OS X
