#
# Thanks to https://github.com/google/googletest/ for helping me avoid a lot of problems creating this file.
#
language: cpp

# Still dreaming of a Windows option.
os:
    - linux
    - osx

dist: trusty
sudo: required

# Test both compilers.
compiler:
    - clang
    - gcc

# Ensure the environment is prepared correctly.
before_install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./TravisCI/LinuxDependencies.sh; fi
    - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./TravisCI/MacDependencies.sh; fi

# Ensure the correct compiler versions are set.
install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
    - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
    - cmake --version
    - $CXX --version

# Create the CMake project.
before_script:
    - mkdir Project
    - cd Project
    - cmake .. -DENABLE_TESTING:BOOL=ON

# Finally execute the build.
script:
    - make
    - echo make test

#
# Thanks to https://github.com/google/googletest/ for helping me avoid a lot of problems creating this file.
#
language: cpp

# Still dreaming of a Windows option.
os:
    - linux
    - osx

dist: trusty
sudo: required

# Allow Mac to fail.
matrix:
    allow_failures:
        - os: osx

# Test both compilers.
compiler:
    - clang
    - gcc

# Ensure the environment is prepared correctly.
before_install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./TravisCI/LinuxDependencies.sh; fi
    - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./TravisCI/MacDependencies.sh; fi

# Ensure the correct compiler versions are set.
install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
    - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
    - cmake --version
    - $CXX --version

# Create the CMake project.
before_script:
    - mkdir Project
    - cd Project
    - cmake .. -DENABLE_TESTING:BOOL=ON

# Finally execute the build.
script:
    - make
    - echo make test

Allow Mac to fail until it can be tested.
Allow Mac to fail until it can be tested.
