.travis.yml 1.72 KB
Newer Older
steinbac's avatar
steinbac committed
1 2 3 4
# C++ project
language: cpp
dist: trusty

5 6 7
matrix:
  include:
    # works on Precise and Trusty
steinbac's avatar
steinbac committed
8 9 10 11 12 13 14 15 16
    # - os: linux
    #   addons:
    #     apt:
    #       sources:
    #         - ubuntu-toolchain-r-test
    #       packages:
    #         - g++-4.9
    #   env:
    #      - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

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

    # works on Precise and Trusty
    - 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
      osx_image: xcode8
      env:
steinbac's avatar
steinbac committed
54
        - MATRIX_EVAL="brew install cmake && CC=gcc-4.9 && CXX=g++-4.9"
55

steinbac's avatar
steinbac committed
56 57 58 59
    # - os: osx
    #   osx_image: xcode8
    #   env:
    #     - MATRIX_EVAL="brew install gcc5 && CC=gcc-5 && CXX=g++-5"
60

steinbac's avatar
steinbac committed
61 62 63 64
    # - os: osx
    #   osx_image: xcode8
    #   env:
    #     - MATRIX_EVAL="brew install gcc6 && CC=gcc-6 && CXX=g++-6"
65 66 67 68

    - os: osx
      osx_image: xcode8
      env:
steinbac's avatar
steinbac committed
69
        - MATRIX_EVAL="brew install gcc cmake && CC=gcc-7 && CXX=g++-7"
70 71 72 73

    - os: osx
      osx_image: xcode8
      env:
steinbac's avatar
steinbac committed
74
        - MATRIX_EVAL="brew install cmake && CC=clang && CXX=clang"
75 76 77 78

before_install:
    - eval "${MATRIX_EVAL}"

steinbac's avatar
steinbac committed
79 80
script:
  - mkdir -p build && cd build
steinbac's avatar
steinbac committed
81 82
  - cmake ..
  - make
steinbac's avatar
steinbac committed
83 84
  - ctest -V -j
  - cd ..