.travis.yml 1.21 KB
Newer Older
steinbac's avatar
steinbac committed
1 2 3
# C++ project
language: cpp
dist: trusty
steinbac's avatar
steinbac committed
4
rvm:
steinbac's avatar
steinbac committed
5
  - 2.3
steinbac's avatar
steinbac committed
6

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
matrix:
  include:
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-5
      env:
         - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"

    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-6
      env:
        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-7
      env:
        - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"

    - os: osx
steinbac's avatar
steinbac committed
41
      osx_image: xcode9
42
      env:
steinbac's avatar
steinbac committed
43
        - MATRIX_EVAL="CC=gcc && CXX=g++"
44 45

    - os: osx
steinbac's avatar
steinbac committed
46
      osx_image: xcode9.3
47
      env:
48
        - MATRIX_EVAL="brew search gcc;brew install gcc6; brew link --overwrite gcc@6 && gcc --version && CC=gcc && CXX=g++"
49 50

    - os: osx
steinbac's avatar
steinbac committed
51
      osx_image: xcode9
52
      env:
steinbac's avatar
steinbac committed
53
        - MATRIX_EVAL="CC=clang && CXX=clang++"
54 55 56 57

before_install:
    - eval "${MATRIX_EVAL}"

steinbac's avatar
steinbac committed
58 59
script:
  - mkdir -p build && cd build
steinbac's avatar
steinbac committed
60
  - cmake ..
61
  - cat tests/build_machine.hpp
steinbac's avatar
steinbac committed
62
  - make VERBOSE=1
steinbac's avatar
steinbac committed
63 64
  - ctest -V -j
  - cd ..