.travis.yml 3.79 KB
Newer Older
Martin Uecker's avatar
Martin Uecker committed
1 2
language: c

Martin Uecker's avatar
Martin Uecker committed
3 4
env:

Martin Uecker's avatar
Martin Uecker committed
5 6 7 8
addons:
  apt:
    packages: &default_packages
      - libfftw3-dev
9
      - libblas-dev
Martin Uecker's avatar
Martin Uecker committed
10 11 12
      - libpng-dev

matrix:
Martin Uecker's avatar
Martin Uecker committed
13 14
  allow_failures:
    - env: MAYFAIL=1
Martin Uecker's avatar
Martin Uecker committed
15
  include:
Martin Uecker's avatar
Martin Uecker committed
16 17
    - name: "Makefile PARALLEL"
      env: PARALLEL=1
Martin Uecker's avatar
Martin Uecker committed
18
      os: linux
19
      compiler: gcc-5
20 21
      sudo: required
      dist: trusty
Martin Uecker's avatar
Martin Uecker committed
22 23
      addons:
        apt:
24 25
          sources:
            - ubuntu-toolchain-r-test
Martin Uecker's avatar
Martin Uecker committed
26 27
          packages:
            - *default_packages
28 29
            - gcc-5
            - liblapacke-dev
Martin Uecker's avatar
Martin Uecker committed
30

31 32
    - name: "Makefile + test + utest"
      env:
Martin Uecker's avatar
Martin Uecker committed
33
      os: linux
34
      compiler: gcc-5
Martin Uecker's avatar
Martin Uecker committed
35 36
      sudo: required
      dist: trusty
Martin Uecker's avatar
Martin Uecker committed
37 38
      addons:
        apt:
39 40
          sources:
            - ubuntu-toolchain-r-test
Martin Uecker's avatar
Martin Uecker committed
41 42
          packages:
            - *default_packages
43 44
            - gcc-5
            - liblapacke-dev
Martin Uecker's avatar
Martin Uecker committed
45 46
      script:
        - make test
47
        - make utest
48

49
    - name: "Makefile Clang"
Martin Uecker's avatar
Martin Uecker committed
50
      env: OMP=0
Martin Uecker's avatar
Martin Uecker committed
51 52
      os: linux
      compiler: clang
53 54
      sudo: required
      dist: trusty
Martin Uecker's avatar
Martin Uecker committed
55 56 57 58
      addons:
        apt:
          packages:
            - *default_packages
59 60
            - liblapacke-dev
            - libblocksruntime-dev
Martin Uecker's avatar
Martin Uecker committed
61 62 63
      script:
        - make utest

64 65
    - name: "Makefile OpenMP"
      env: OMP=1
Martin Uecker's avatar
Martin Uecker committed
66
      os: linux
67
      compiler: gcc-5
Martin Uecker's avatar
Martin Uecker committed
68 69 70 71
      sudo: required
      dist: trusty
      addons:
        apt:
72 73
          sources:
            - ubuntu-toolchain-r-test
Martin Uecker's avatar
Martin Uecker committed
74 75
          packages:
            - *default_packages
76 77
            - gcc-5
            - liblapacke-dev
Martin Uecker's avatar
Martin Uecker committed
78 79 80
      script:
        - make test
        - make utest
Martin Uecker's avatar
Martin Uecker committed
81

82 83
    - name: "Makefile NOLAPACKE"
      env: NOLAPACKE=1
84
      os: linux
85
      compiler: gcc-5
Jon Tamir's avatar
Jon Tamir committed
86 87 88 89
      sudo: required
      dist: trusty
      addons:
        apt:
90 91
          sources:
            - ubuntu-toolchain-r-test
Jon Tamir's avatar
Jon Tamir committed
92 93
          packages:
            - *default_packages
94
            - gcc-5
95
            - gfortran
96
            - liblapack-dev
Martin Uecker's avatar
Martin Uecker committed
97

98
    - name: "CMake GCC-5"
Martin Uecker's avatar
Martin Uecker committed
99
      env: MAYFAIL=1
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
      os: linux
      compiler: gcc-5
      sudo: required
      dist: trusty
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - *default_packages
            - gcc-5
            - libatlas-base-dev
            - liblapacke-dev
      before_script:
        - mkdir build && cd build
        # NB: CC is automatically set to `compiler` by Travis
        - cmake .. -DLINALG_VENDOR=ATLAS -DBART_ENABLE_MEM_CFL=OFF -DBUILD_TESTING=OFF -DBART_LOG_BACKEND=OFF -DUSE_OPENMP=ON -DBART_GENERATE_DOC=OFF

    - name: "CMake GCC-5 NOLAPACKE"
Martin Uecker's avatar
Martin Uecker committed
119
      env: MAYFAIL=1
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
      os: linux
      compiler: gcc-5
      sudo: required
      dist: trusty
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - *default_packages
            - gcc-5
            - gfortran
            - libatlas-base-dev
            - liblapack-dev
      before_script:
        - mkdir build && cd build
        # NB: CC is automatically set to `compiler` by Travis
        - cmake .. -DBART_ENABLE_MEM_CFL=OFF -DBUILD_TESTING=OFF -DBART_LOG_BACKEND=OFF -DUSE_OPENMP=ON -DBART_GENERATE_DOC=OFF -DBART_NO_LAPACKE=ON

    - name: "CMake GCC-5/G++-5 (with mem-CFL support) + utest"
Martin Uecker's avatar
Martin Uecker committed
140
      env: MAYFAIL=1
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
      os: linux
      compiler: gcc-5
      sudo: required
      dist: trusty
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - *default_packages
            - gcc-5
            - g++-5
            - libatlas-base-dev
            - liblapacke-dev
      before_script:
        - mkdir build && cd build
        # NB: CC is automatically set to `compiler` by Travis
        - CXX=g++-5 cmake .. -DLINALG_VENDOR=ATLAS -DBART_ENABLE_MEM_CFL=ON -DBUILD_TESTING=ON -DBART_LOG_BACKEND=OFF -DUSE_OPENMP=ON -DBART_GENERATE_DOC=OFF
      after_script:
        - make test
Jon Tamir's avatar
Jon Tamir committed
161

Martin Uecker's avatar
Martin Uecker committed
162 163 164
script:
  - make bart
  - make all