Version 0.3.9
[marnav.git] / .travis.yml
blobacb4d9e6d7eb73ee0d11750efd894b715715b1ae
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     - os: linux
89       env: COMPILER=g++-4.9 CMAKE_BUILD_TYPE=Debug ENABLE_SEATALK=NO
90       compiler: gcc
91       addons:
92         apt:
93           sources:
94           - boost-latest
95           - ubuntu-toolchain-r-test
96           packages:
97           - gcc-4.9
98           - g++-4.9
99           - libboost1.55-all-dev
101     - os: linux
102       env: COMPILER=g++-4.9 CMAKE_BUILD_TYPE=Debug ENABLE_AIS=NO
103       compiler: gcc
104       addons:
105         apt:
106           sources:
107           - boost-latest
108           - ubuntu-toolchain-r-test
109           packages:
110           - gcc-4.9
111           - g++-4.9
112           - libboost1.55-all-dev
114 install:
115   # install a recent cmake
116   - curl -O https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz
117   - tar -xf cmake-3.2.3-Linux-x86_64.tar.gz
118   - rm -f cmake-3.2.3-Linux-x86_64.tar.gz
119   - export PATH=${PWD}/cmake-3.2.3-Linux-x86_64/bin:${PATH}
121 before_script:
122   - mkdir build
123   - cd build
124   - cmake --version
125   - ${COMPILER} --version
126   - CXX=${COMPILER} cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ..
128 script:
129   - make
130   - make unittest
131   - make test