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

7 8 9
matrix:
  include:
    # works on Precise and Trusty
steinbac's avatar
steinbac committed
10 11 12 13 14 15 16 17 18
    # - os: linux
    #   addons:
    #     apt:
    #       sources:
    #         - ubuntu-toolchain-r-test
    #       packages:
    #         - g++-4.9
    #   env:
    #      - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
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
steinbac's avatar
steinbac committed
54
      osx_image: xcode9
55
      env:
steinbac's avatar
steinbac committed
56
        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
57 58

    - os: osx
steinbac's avatar
steinbac committed
59
      osx_image: xcode9
60
      env:
steinbac's avatar
steinbac committed
61
        - MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
62 63

    - os: osx
steinbac's avatar
steinbac committed
64
      osx_image: xcode9
65
      env:
steinbac's avatar
steinbac committed
66
        - MATRIX_EVAL="CC=clang && CXX=clang"
67 68 69 70

before_install:
    - eval "${MATRIX_EVAL}"

steinbac's avatar
steinbac committed
71 72
script:
  - mkdir -p build && cd build
steinbac's avatar
steinbac committed
73 74
  - cmake ..
  - make
steinbac's avatar
steinbac committed
75 76
  - ctest -V -j
  - cd ..