Refactor: code duplication reduced for size check of seatalk messages
[marnav.git] / .travis.yml
blobddd92761a45c5604ede25d956475b47205b11c24
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
12       compiler: gcc
13       addons:
14         apt:
15           sources:
16           - ubuntu-toolchain-r-test
17           packages:
18           - gcc-4.9
19           - g++-4.9
21     - os: linux
22       env: COMPILER=g++-5
23       compiler: gcc
24       addons:
25         apt:
26           sources:
27           - ubuntu-toolchain-r-test
28           packages:
29           - gcc-5
30           - g++-5
32     - os: linux
33       env: COMPILER=clang++-3.6
34       compiler: clang
35       addons:
36         apt:
37           sources:
38           - ubuntu-toolchain-r-test
39           - llvm-toolchain-precise-3.6
40           packages:
41           - clang-3.6
43     - os: linux
44       env: COMPILER=clang++-3.7
45       compiler: clang
46       addons:
47         apt:
48           sources:
49           - ubuntu-toolchain-r-test
50           - llvm-toolchain-precise-3.7
51           packages:
52           - clang-3.7
54 install:
55   # install a recent cmake
56   - wget http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz
57   - tar -xf cmake-3.2.3-Linux-x86_64.tar.gz
58   - rm -f cmake-3.2.3-Linux-x86_64.tar.gz
59   - export PATH=${PWD}/cmake-3.2.3-Linux-x86_64/bin:${PATH}
61 before_script:
62   - mkdir build
63   - cd build
64   - ${COMPILER} --version
65   - CXX=${COMPILER} cmake ..
67 script:
68   - make
69   - make unittest
70   - make test