language: cpp
compiler:
  - gcc
notifications:
  slack: fallto:MlnVOMNkx8YopsaSSxqh2Rcr
before_install:
  - sudo apt-get install cmake
  - sudo apt-get install mercurial
  - git config --global user.email "travis-ci@example.com"
  - git config --global user.name "Build Server"
script: "cmake -P oo-cmake-tests.cmake"
branches:
  only:
    - master
    - devel

language: cpp
compiler:
  - gcc
env:
  - CMAKE_DIR="v3.0" CMAKE_VERSION="3.0.1"
  - CMAKE_DIR="v2.8" CMAKE_VERSION="2.8.12.2"
notifications:
  slack: fallto:MlnVOMNkx8YopsaSSxqh2Rcr
before_install:
  - sudo apt-get install cmake
  - sudo apt-get install mercurial
  - git config --global user.email "travis-ci@example.com"
  - git config --global user.name "Build Server"
install:
     # install cmake --
    - wget "http://www.cmake.org/files/${CMAKE_DIR}/cmake-${CMAKE_VERSION}.tar.gz"
    - tar xf "cmake-${CMAKE_VERSION}.tar.gz"
    - cmake -Hcmake-${CMAKE_VERSION} -B_builds -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="`pwd`/_install"
    - cmake --build _builds --target install
    - export PATH="`pwd`/_install/bin:${PATH}"
    # -- end
    # verify installed cmake --
    - which cmake
    - cmake --version
    # -- end
script: "cmake -P oo-cmake-tests.cmake"
branches:
  only:
    - master
    - devel

Test with different cmake versions (2.8.12.2, 3.0.1)
Test with different cmake versions (2.8.12.2, 3.0.1)
