Dev: added tidy (using clang-tidy)
[marnav.git] / .travis.yml
blobcf780d657283e7fc496f97306c5b41b2f8349f64
1 language: c++
2 sudo: false
4 git:
5   depth: 10
6   submodules: false
8 matrix:
9   include:
10     - os: linux
11       env: COMPILER=g++-4.9 CMAKE_BUILD_TYPE=Debug
12       compiler: gcc
13       addons:
14         apt:
15           sources:
16           - boost-latest
17           - ubuntu-toolchain-r-test
18           packages:
19           - gcc-4.9
20           - g++-4.9
21           - libboost1.55-all-dev
23     - os: linux
24       env: COMPILER=g++-4.9 CMAKE_BUILD_TYPE=Release
25       compiler: gcc
26       addons:
27         apt:
28           sources:
29           - boost-latest
30           - ubuntu-toolchain-r-test
31           packages:
32           - gcc-4.9
33           - g++-4.9
34           - libboost1.55-all-dev
36     - os: linux
37       env: COMPILER=g++-5 CMAKE_BUILD_TYPE=Debug
38       compiler: gcc
39       addons:
40         apt:
41           sources:
42           - boost-latest
43           - ubuntu-toolchain-r-test
44           packages:
45           - gcc-5
46           - g++-5
47           - libboost1.55-all-dev
49     - os: linux
50       env: COMPILER=clang++-3.6 CMAKE_BUILD_TYPE=Debug
51       compiler: clang
52       addons:
53         apt:
54           sources:
55           - boost-latest
56           - ubuntu-toolchain-r-test
57           - llvm-toolchain-precise-3.6
58           packages:
59           - clang-3.6
60           - libboost1.55-all-dev
62     - os: linux
63       env: COMPILER=clang++-3.7 CMAKE_BUILD_TYPE=Debug
64       compiler: clang
65       addons:
66         apt:
67           sources:
68           - boost-latest
69           - ubuntu-toolchain-r-test
70           - llvm-toolchain-precise-3.7
71           packages:
72           - clang-3.7
73           - libboost1.55-all-dev
75     - os: linux
76       env: COMPILER=clang++-3.7 CMAKE_BUILD_TYPE=Release
77       compiler: clang
78       addons:
79         apt:
80           sources:
81           - boost-latest
82           - ubuntu-toolchain-r-test
83           - llvm-toolchain-precise-3.7
84           packages:
85           - clang-3.7
86           - libboost1.55-all-dev
88 install:
89   # install a recent cmake
90   - curl -O https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz
91   - tar -xf cmake-3.2.3-Linux-x86_64.tar.gz
92   - rm -f cmake-3.2.3-Linux-x86_64.tar.gz
93   - export PATH=${PWD}/cmake-3.2.3-Linux-x86_64/bin:${PATH}
95 before_script:
96   - mkdir build
97   - cd build
98   - cmake --version
99   - ${COMPILER} --version
100   - CXX=${COMPILER} cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ..
102 script:
103   - make
104   - make unittest
105   - make test