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

7 8 9 10 11 12 13 14
matrix:
  include:
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
Peter Steinbach's avatar
Peter Steinbach committed
15
            - gcc-5
16
            - g++-5
17 18 19 20 21 22 23 24 25
      env:
         - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"

    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
Peter Steinbach's avatar
Peter Steinbach committed
26
            - gcc-6
27
            - g++-6
28 29 30 31 32 33 34 35 36 37
      env:
        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
Peter Steinbach's avatar
Peter Steinbach committed
38
            - gcc-7
39 40 41 42
            - g++-7
      env:
        - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"

Peter Steinbach's avatar
Peter Steinbach committed
43 44 45 46 47 48 49
    # works on Precise and Trusty
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
Peter Steinbach's avatar
Peter Steinbach committed
50
            - gcc-8
Peter Steinbach's avatar
Peter Steinbach committed
51 52 53 54
            - g++-8
      env:
        - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"

55
    - os: osx
steinbac's avatar
steinbac committed
56
      osx_image: xcode9
57
      env:
58
        - MATRIX_EVAL="CC=gcc && CXX=g++"
59 60

    - os: osx
61
      osx_image: xcode9.3
62
      env:
63
        - MATRIX_EVAL="brew search gcc;brew install gcc6; brew link --overwrite gcc@6 && gcc --version && CC=gcc && CXX=g++"
64 65

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

before_install:
    - eval "${MATRIX_EVAL}"
Peter Steinbach's avatar
Peter Steinbach committed
72

73

steinbac's avatar
steinbac committed
74
script:
Peter Steinbach's avatar
Peter Steinbach committed
75
  - env | egrep '^C'
Peter Steinbach's avatar
Peter Steinbach committed
76
  - which ${CXX} && ${CXX} --version
steinbac's avatar
steinbac committed
77
  - mkdir -p build && cd build
steinbac's avatar
steinbac committed
78
  - cmake ..
79
  - cat tests/build_machine.hpp
steinbac's avatar
steinbac committed
80
  - make VERBOSE=1
steinbac's avatar
steinbac committed
81
  - ctest -V -j
82
  - cd ..